Display Umlaute using on web page

I am using the weather binding and have the “examples.html” enhanced to display further information.

Unfortuantely the umlauts (German characters with dots on the top) are not displayed probably. e.g. Restm�lltonne:
I am using Windows. Is there a way how to format those characters correctly?

Not sure about that…
Sometimes it works if you encode your source files with UTF-8, but not always. There could be the possiblity to use the UTF16 java encoding \uxxxx (seen in mapping files), but for this you have to find out the code.

Regards
Dieter

Same problem, if i start openhab automatically with script, i get same errors, but it i stop service and start manually, it works. You have to change locals on your Linux Server vor every user. But it still not working in my system.

Do you run openhab on Linux and Webbrowser on Windows or both on Windows systems?

@Dieter. Source code should be encode by UTF-8.
Yes, I know the workaround with the “\uxxxx” but if I am appyling this workaround the items are not readalbe in normal sitemaps.

@halloween:on windows only

[quote=“martin_klimke, post:4, topic:5906, full:true”]
Yes, I know the workaround with the “\uxxxx” but if I am appyling this workaround the items are not readalbe in normal sitemaps.[/quote]

Hmmm, strange, it’s working fine here:

*.map:
2=ist ge\u00F6ffnet

Browser display (and looks the same in habroid):

1 Like

@sihui and @DieterL
I have upgraded to V 1.7.1. and it is also working in my installation.

Thanks for the great support!

with me also saving on UTF 8 and then the umlaut brought the desired result

what if I want to compare the string in HABPabel widget?

 <div class="section_trash" ng-if="itemValue(Garbage_Calender_Next_Event_Title)=='Biomüll'">
   <img src="/static/images/trash_green.svg" alt="trash"></img>
 </div> 

the item returns “Biomüll” string but the icon is not getting displayed. :frowning:

works if you place item name between ’ '…

ng-if="itemValue('Garbage_Calender_Next_Event_Title') == 'Biomüll' "