SiriControl-System icon indicating copy to clipboard operation
SiriControl-System copied to clipboard

Message encoding breaks on accented letters

Open flesler opened this issue 7 years ago • 1 comments

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 (?)

flesler avatar May 29 '17 19:05 flesler

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.

somlioy avatar Feb 18 '18 11:02 somlioy