[
https://issues.apache.org/jira/browse/THRIFT-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jens Geyer resolved THRIFT-2087.
--------------------------------
Fix Version/s: 0.14.0
Resolution: Fixed
> 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: Emmanuel Brard
> Priority: Minor
> Fix For: 0.14.0
>
> Attachments: thrift-2087-unicode-decode-errors.patch
>
> Time Spent: 20m
> 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)