I have some things, which contain umlauts in their name, e.g:
Rollladen EG Büro Straße
I can enter those in PaperUI and they are correctly shown, but after a restart of openhab, they become corrupted:
Rollladen EG B?ro Stra?e
I did some checks. The umlauts are broken on my notebook (MacOS/Chrome) and mobile (iOS/Safari).
Also it doesn’t matter if the umlauts where entered on the notebook or mobile.
Without restarted they are alway shown correctly on both devices.
I did have a look to the JSON-DB (org.eclipse.smarthome.core.thing.Thing.json). The umlauts are broken in the json (saved with ?). I also did some checks with curling the REST-API the umlauts are broken (after restart) / correct (before restore) there in the same way as in paperui. So it is not a problem in the browser or paperui.
I enforced UTF-8 file encoding. No it works.
Depending on your installation option setting the option may be a little bit different.
I’m using the deb-Packages, propably for openhabian it is the same.
Add the following to /etc/defaults/openhab2
I found the reason for the corruption, the config files are saved with the encoding default
[09:59:05] root@openhab:/etc/openhab2/items# file *
alexa.items: ASCII text, with CRLF line terminators
fritzbox.items: ASCII text, with CRLF line terminators
Haus.items: UTF-8 Unicode text, with CRLF line terminators
knx.items: UTF-8 Unicode text, with CRLF line terminators
Marantz.items: ASCII text, with CRLF line terminators
network.items: ASCII text, with CRLF line terminators
openweathermap.items: ISO-8859 text, with CRLF line terminators
readme.txt: ASCII text
Sonos.items: ASCII text, with CRLF line terminators
unifi.items: ASCII text, with CRLF line terminators
zwave.items: ISO-8859 text, with CRLF line terminators
[09:59:10] root@openhab:/etc/openhab2/items#
I used Programmers Notepad to fix it, see below for details
I have the same issue in OH 2.5 release in PaperUi interface. Also the intersection symbol: ∩ displayed as ? In PaperUi things propertirs and chained transformation does not work.