You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Jonathan Ellis (JIRA)" <ji...@apache.org> on 2009/03/23 18:53:50 UTC
[jira] Issue Comment Edited: (THRIFT-395) Python library + compiler
does not support unicode strings
[ https://issues.apache.org/jira/browse/THRIFT-395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12688350#action_12688350 ]
Jonathan Ellis edited comment on THRIFT-395 at 3/23/09 10:53 AM:
-----------------------------------------------------------------
Again: unicode is not forced. Either a unicode object or a binary string containing ascii characters is legal to pass to a `string` type. This is standard for unicode-supporting apps in Python 2.x. (And is the whole point of using UTF-8 as the encoding target.)
was (Author: jbellis):
Again: unicode is not forced. Either a unicode object or a binary string containing ascii characters is legal to pass to a `string` type. This is standard for unicode-supporting apps in Python 2.x.
> Python library + compiler does not support unicode strings
> ----------------------------------------------------------
>
> Key: THRIFT-395
> URL: https://issues.apache.org/jira/browse/THRIFT-395
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Python), Library (Python)
> Reporter: Jonathan Ellis
> Assignee: Jonathan Ellis
> Priority: Blocker
> Attachments: python-utf8.patch
>
>
> Effectively, all strings in the python bindings are treated as binary strings -- no encoding/decoding to UTF-8 is done. So if a unicode object is passed to a (regular, non-binary) string, an exception is raised.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.