Umlauts broken after restart in OH 2.4

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.

UI is in English.

Openhab Version 2.4final

have the same issue :frowning:

Created an issue for that https://github.com/eclipse/smarthome/issues/6729

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

EXTRA_JAVA_OPTS="-Dfile.encoding=UTF8"

not working for openhabian :frowning:

have changed the line to

EXTRA_JAVA_OPTS="-Dgnu.io.rxtx.SerialPorts=/dev/ttyUSB0:/dev/ttyS0:/dev/ttyS2:/dev/ttyACM0:/dev/ttyAMA0 -Dfile.encoding=UTF8"

same with UTF-8

still the same after reboot

strange is that the main page is displayed correct ! but sub pages are wrong

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

Umlaute1.jpg is the wrong formating

Hi Thomas,

I have the same problem. Can you shortly describe for me again how you solved the problem with the „Umlaute“ at the end?

Thanks in advance.

@maihacke Just a short heads up: Your fix has been integrated into the distribution: https://github.com/openhab/openhab-distro/pull/833.

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.

https://github.com/openhab/openhab-distro/pull/833 fixes it only for windows. So I still had to modify my etc/defaults. By the way why is this file overwritten during upgrade?

Did you get a solution to this? I have the same issue trying to save transformations in paper ui!?

here my solution:
save the .things, .sitemaps, .rules and .items files with programmes notepad

encoding UTF-8 No Mark for correct display of “Umlaute”