appdaemon icon indicating copy to clipboard operation
appdaemon copied to clipboard

character encoding problem using utf-8 characters in log messages

Open pvojnisek opened this issue 3 years ago • 2 comments

Using utf-8 characters in the python code: self.log('éáűőúöüóí') Causes incorrectly encoded characters in Supervisor/AppDaemon log.

pvojnisek avatar Oct 17 '21 10:10 pvojnisek

I can't output log messages written in Japanese. Everything comes out as "������������"

zerg960 avatar May 11 '23 15:05 zerg960

Use ascii_encode = False:

    adapi.log(f'{message.author}: {message.content}', ascii_encode = False)

I don't know why that's not the default behavior.

zerg960 avatar May 12 '23 20:05 zerg960