SiriControl-System
SiriControl-System copied to clipboard
Message encoding breaks on accented letters
Tested it on spanish:
Said probando otra cosa más
Script received: probando otra cosa m=c3=a1s=
I don't know if it never actually uses utf-8
which is assumed by the script or rather it depends on the phone. You might be able to detect encoding (?)
Changing line 90 in SiriControl.py from:
return str(voice_command.get_payload()).lower().strip()
to
return str(voice_command.get_payload(decode=True)).lower().strip()
Fixed the issue for me with letters such as æ. ø and å.
You also might need to add
# -*- coding: UTF-8 -*-
On top of corresponding module-files.