You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jens Geyer (Jira)" <ji...@apache.org> on 2020/06/19 17:56:00 UTC
[jira] [Comment Edited] (THRIFT-2087) unicode decode errors
[ https://issues.apache.org/jira/browse/THRIFT-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17140733#comment-17140733 ]
Jens Geyer edited comment on THRIFT-2087 at 6/19/20, 5:55 PM:
--------------------------------------------------------------
[~minisotm]
Patch file broken. Is there an update available?
{code:java}
$ git apply ../thrift-2087-unicode-decode-errors.patch
error: unrecognized input
{code}
was (Author: jensg):
Patch file broken. Is there an update available?
{code}
$ git apply ../thrift-2087-unicode-decode-errors.patch
error: unrecognized input
{code}
> 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
> Attachments: thrift-2087-unicode-decode-errors.patch
>
>
> 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)