[ https://issues.apache.org/jira/browse/THRIFT-395?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12694829#action_12694829 ]
Jonathan Ellis commented on THRIFT-395: --------------------------------------- > As in all C++, Ruby, PHP, Perl, and Erlang programs, it is the simply > application's responsibility to ensure that the string is properly UTF-8 > encoded on writing and to interpret the string ast UTF-8 on reading. Then you are really passing binary data around and your IDL should reflect that. Calling it a string implies there are semantics beyond a bunch of bytes for which it's the application's responsibility to derive any meaning from. Calling it a string when it may or may not be is holding languages that _do_ have real string support hostage to those that don't. > Python library + compiler does not support unicode strings > ---------------------------------------------------------- > > Key: THRIFT-395 > URL: https://issues.apache.org/jira/browse/THRIFT-395 > Project: Thrift > Issue Type: Improvement > Components: Compiler (Python), Library (Python) > Reporter: Jonathan Ellis > Assignee: Jonathan Ellis > Fix For: 0.1 > > Attachments: > 0001-python-Minor-cleanup-of-protocols-don-t-use-str.patch, > 0002-THRIFT-395.-python-Phase-One-of-support-for-unicode.patch, > 0003-THRIFT-395.-python-Phase-Two-of-support-for-unicode.patch, > 0004-python-Remove-ridiculous-semicolons-from-gen-code.patch, > python-utf8-v2.patch, 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.