bob1de / hass-apps

Some useful apps and snippets to empower Home Assistant and AppDaemon even more.
Apache License 2.0
85 stars 23 forks source link

Non-ASCII characters aren't displayed correctly in log messages #46

Closed chbndrhnns closed 4 years ago

chbndrhnns commented 4 years ago

I view the Appdaemon logs via its Hass add on.

There, the log messages look like that:

Screenshot 2020-01-28 at 16 32 43
bob1de commented 4 years ago

Hi,

Thanks for reporting.

Could you describe where exactly in which log message you see unsupported characters? I'm blind and thus can't see what that image shows.

Best regards Robert

chbndrhnns commented 4 years ago

The characters appear in the appdaemon logs when I view them via the browser.

The strange characters appear twice after the reported temperature.

I am copying one line of logs here for you:

2020-02-05 08:57:12.733880 INFO schedy_heating: --> [R:kueche] [A:climate.kuche] Received value of 7.0��.
bob1de commented 4 years ago

Hm, this should simply be a ° sign... It is set correctly in the sources, I can just imagine that the log viewer (or some other component along the way) doesn't support UTF-8 or isn't configured properly.

If you place another UTF-8 character somewhere, e.g. setting friendly_name: Küche for the room kueche, does this appear messed up as well?

bob1de commented 4 years ago

I checked with my own installation running the AppDaemon docker image, and non-ASCII characters aren't displayed correctly there either, so I guess it's an issue with how AppDaemon prints the log messages. You can verify this yourself by creating an own app and letting it log something with umlauts.

I'm closing this issue since it's not related to Schedy directly but will report it to AppDaemon when I've got more time.

Best regards Robert