Hi! I’m connecting OSMC to OpenHAB and first of all created “Now Playing: [%s]”.
I did:
String OSMC_Playing “Now Playing: [%s]” {xbmc=“<[#mainOSMC|Player.Title]”}
API is working fine, but string value looks like:
OSMC_Playing state updated to ÐиÑайÑкий кваÑÑал
I’m using Russian Language in OSMC, as I can see the result is in UTF-8, but OpenHAB can’t convert it correctly into, for example, ISO-8859-1. It should look like:
I’ve tried to change locales on my OSMC (running on RPi 2), and reached some progress - filenames in bash console new looks ok and and I can type with “RU” letters (previously I couldn’t do even that), but in OpenHAB there is still an issue.
Trying to find out what is wrong I tried to debug simply with curl:
When in browser open hostname/openghab.app
I see charset=utf-8 inside page source, also Content-Type HTTP response header is charset=utf-8.
Ok, I’ve installed nginx as proxy and replaced Content-Type: header with charset=iso-8859-1 - characters on webpage were changed to another bad symbols - good point to start. BUT I’ve tried all charsets I know and could find - nothing give me good result. I’ve tried change View options in Firefox also - no result.
I’ve got similar problem with french character “é”, “è”. Those character are remplaced by � in openhab logfile. My solution was to open my openhab .map file with an external editor, and save it with iso-8859 encoding. Now those character are corect in openhab log, but in the designer they are remplaced by �. It’s not the best solution, maybe somebody get a better solution?