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

ASF GitHub Bot commented on THRIFT-3500:
----------------------------------------

Github user nsuke commented on the pull request:

    https://github.com/apache/thrift/pull/756#issuecomment-166885658
  
    In the current design, unicode in py2 is handled by -gen py:utf8strings 
compiler switch.
    Does it cover your use case ?


> Protocols in Python 2 do not treat Strings as unicode.
> ------------------------------------------------------
>
>                 Key: THRIFT-3500
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3500
>             Project: Thrift
>          Issue Type: Bug
>          Components: Python - Library
>    Affects Versions: 0.9.3, 1.0
>            Reporter: John Lockwood
>
> Service methods which take a string type param, should expect a unicode 
> object in Python 2, but instead expect str.
> Service methods which return string type objects should return a unicode 
> object in Python 2, but instead return str.
> When making service calls with Python 2, passing in a unicode object with 
> non-ascii chars will raise an exception.



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

Reply via email to