HTML-Renderer
HTML-Renderer copied to clipboard
Problem with uppercase Umlaut
Hi,
currently we're facing an issue with capitalized German Umlauts.
Ü
will be written as lower-case ü and not Ü
Suggested resolution: Ü
must be uppercase Ü and only ü
should be lowercase ü.
The same with Ä
and Ö
Thanks Sven
Hi @sven5 i was able to trace down this issue to the following line: HtmlUtils.cs#48
It's raised by StringComparer.InvariantCultureIgnoreCase
but a fix wouldn't be that easy by replacing it with StringComparer.InvariantCulture
because there are other entities in the list that wouldn't get matched if you change it.
Example:  
wouldn't match
Maybe i find some time in the next days and split the lists and modify the DecodeHtmlCharByName
method to solve this issue.
Hi Oliver,
thanks for your time to look into the issue. It would be great if we can have a fix in the next days.
Best Regards Sven
I've tested my modifications and it looks fine but i'm not sure if is the way we should go (implement a second case sensitive map for special entities).
Maybe we should consider to switch to System.Net.WebUtility.HtmlDecode
but i do not know what side effects that would have (Mono/.Net 2/etc).
Any way, i'll post the "quick" fix later on to solve this.
sorry guys, need sometime to restore my workspace after a long time task