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:
@Resources.Resources.BtnDeleteLine // "Zeile löschen"
@Resources.Resources.BtnDeleteLine.Replace('#', 'X') // "Zeile löschen"
@((Resources.Resources.BtnDeleteLine).Replace('#', 'X')) // "Zeile löschen"
@Resources.Resources.BtnDeleteLine.Replace("ö", "ö") // "Zeile l&ouml;schen"
@WebUtility.HtmlEncode(Resources.Resources.BtnDeleteLine) // "Zeile l&#246;schen"
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,