[
https://issues.apache.org/jira/browse/THRIFT-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17141822#comment-17141822
]
Emmanuel Brard commented on THRIFT-2087:
----------------------------------------
https://github.com/apache/thrift/pull/2184
> 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
> Assignee: Aleksey Maslennikov
> Priority: Minor
> Attachments: thrift-2087-unicode-decode-errors.patch
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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 was sent by Atlassian Jira
(v8.3.4#803005)