Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Message encoding breaks on accented letters #4

Open
flesler opened this issue May 29, 2017 · 1 comment
Open

Message encoding breaks on accented letters #4

flesler opened this issue May 29, 2017 · 1 comment

Comments

@flesler
Copy link

flesler commented May 29, 2017

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

@somlioy
Copy link

somlioy commented Feb 18, 2018

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants