Hi,
I've a MVC ListView which was working perfectly until I've localized it to German. My resources are managed in Visual Studio's Resource Designer, the typical way I'd say. If any of these resources contains an umlaut and is used directly in the template, it will be converted to something like "ö". The unescaped hash sign breaks the template. I've tried several attempts to fix this issue, but none of them worked:
1.
<
script
type
=
"text/x-kendo-tmpl"
id
=
"recordLinesTemplate"
>
2.
@Resources.Resources.BtnDeleteLine // "Zeile löschen"
3.
@Resources.Resources.BtnDeleteLine.Replace('#', 'X') // "Zeile löschen"
4.
@((Resources.Resources.BtnDeleteLine).Replace('#', 'X')) // "Zeile löschen"
5.
@Resources.Resources.BtnDeleteLine.Replace("ö", "ö") // "Zeile l&ouml;schen"
6.
@WebUtility.HtmlEncode(Resources.Resources.BtnDeleteLine) // "Zeile l&#246;schen"
7.
</
script
>
Out of curiosity, I've tried to encode the umlaut directly in the resource, but the ampersand gets encoded as well.
Any ideas how to resolve this issue?
Beste Grüße with two umlauts,
Carsten