Aleksey Maslennikov created THRIFT-2087:
-------------------------------------------

             Summary: unicode decode errors
                 Key: THRIFT-2087
                 URL: https://issues.apache.org/jira/browse/THRIFT-2087
             Project: Thrift
          Issue Type: Improvement
          Components: Python - Compiler
    Affects Versions: 0.9
         Environment: Ubuntu 12.10 (GNU/Linux 3.5.0-17-generic x86_64), python 
2.7
            Reporter: Aleksey Maslennikov
            Priority: Minor


If the supplied string is not valid utf-8 there is an exception:

self.match = iprot.readString().decode('utf-8')
  File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xf2 in position 0: invalid 
continuation byte


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to