[ 
https://issues.apache.org/jira/browse/THRIFT-3721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15187604#comment-15187604
 ] 

Jason Heimann commented on THRIFT-3721:
---------------------------------------

> utf8 is handled by "-gen py:utf8_strings" generator option 

I will give this a try and report back.

> If you're using a protocol object directory, you need to do the conversion 
> yourself.

I'm not using any protocol objects directly in my project.  But my project code 
is too unwieldy to copy-paste into a JIRA issue.

The example code is a distillation of the code that is generated by Thrift.  
And as the error indicates, the generated code does not do any conversion.  
Hence this issue.

> as discussed in the original issue that contains the patch

Sorry, I'm not familiar with the "original issue" or "patch" to which you're 
referring.  The issue I've cloned contains no such discussion.

> CLONE - why not add unicode strings support to python directly?
> ---------------------------------------------------------------
>
>                 Key: THRIFT-3721
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3721
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Library
>    Affects Versions: 0.8, 0.9.2
>         Environment: Ubuntu 14.04.03 LTS, Ubuntu 15.10
>            Reporter: Jason Heimann
>            Assignee: Jake Farrell
>              Labels: python, unicode
>
> i install thrift python lib by easy_install
> but in version0.8,I still didn't see the 
> patch(https://issues.apache.org/jira/browse/THRIFT-395) be added in the lib
> I had to hack the code follow the patch manually 
> (https://issues.apache.org/jira/secure/attachment/12404198/0003-THRIFT-395.-python-Phase-Two-of-support-for-unicode.patch)
> Can any of the developers fix the problem?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to