If I display information from the internet or encoded text files containing special characters (á,ö,ß etc.), the widget does not display these characters but unicode code information. If there characters are put into a string directly, they're displayed. For example 'Mönchfeld' fetched from an external data source becomes 'Mönchfeld'. 'Mönchfeld' also becomes 'Mönchfeld'.
Is there a way to display these characters directly in the right way or do I have to write search and replace loops for every special character that may be used possibly?
We have run into this issues as well with Internet feeds that do not always obey UTF-8 encoding. We have developed a server-side script to scrub the content before it is sent to the Widget. Is a server side script something that could be used with your Widget?
A server-sided script may be an option but I think if there is no string function, it would be easier to write one. There are only some special characters in western-european languages to be replaced - totally 23 (umlauts, vocals with accents, n with tilde). So, I think I will implement an own function that scans the html data for unicode strings and replaces them with the real letter. The easiest way may be to scan the string for '#' at first and if this character occurs to search for unicodes and replace them.