Re: [PATCH] monitor-ofono: Fix to print non-English characters

2012-07-27 Thread Denis Kenzior
Hi Philippe, On 07/26/2012 10:57 AM, Philippe Nunes wrote: The default encoding for a Python bytestring is ASCII. But the SMS/USSD text is encoded in UTF-8. This is why trying to convert non-English characters (Unicode characters beyond 128) produces the error UnicodeEncodeError: 'ascii' codec

[PATCH] monitor-ofono: Fix to print non-English characters

2012-07-26 Thread Philippe Nunes
The default encoding for a Python bytestring is ASCII. But the SMS/USSD text is encoded in UTF-8. This is why trying to convert non-English characters (Unicode characters beyond 128) produces the error UnicodeEncodeError: 'ascii' codec can't encode character. --- test/monitor-ofono |4 ++-- 1