ha-bridge icon indicating copy to clipboard operation
ha-bridge copied to clipboard

habridge,fibaro, alexa german Umlaut

Open sonypsx opened this issue 4 years ago • 2 comments

Hello,

if i set a device name with a german umlaut, and afterwards trigger the device discovery via alexa the name of such a device is crippled. For example: Name: "Küche" (this means Kitchen) Looks like the following in the Alexa App: Küche

I just found out that does only happen with Alexa 1st Gen, with Alexa 4th the device name is correctly However if i edit the name in the Alexaapp under devices to the correct spelling, it works like expected.

Is there a way to fix fix this?

Best regards sonypsx

sonypsx avatar Dec 30 '20 22:12 sonypsx

Perhaps something like that:

https://php-de.github.io/jumpto/utf-8/#konsequent-utf-8

and if this could be ... something like

header('Content-Type: text/html; charset=UTF-8');

could be the solution.

If I am right, all the

response.header("Content-Type", "text/html");

in

https://github.com/bwssytems/ha-bridge/blob/master/src/main/java/com/bwssystems/HABridge/hue/HueMulator.java

should be replaced with:

response.header("Content-Type", "text/html", "charset=UTF-8");

I dont know if this works, ... perhaps there are other places where the HTTP-Header should be fixed to UTF-8

amoksworld avatar May 20 '21 22:05 amoksworld

Any news regarding this topic?

amoksworld avatar Nov 06 '22 12:11 amoksworld