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

Phongphan Phuttha edited comment on THRIFT-2413 at 11/14/15 3:12 PM:
---------------------------------------------------------------------

[~nsuke] Thank you!

I believe Python 2 build for Windows from [python.org|https://python.org] is 
narrow build, which doesn't support code point beyond 0x10000.

Here's a result from my machine (win7 x64 running 32-bit Python). Not sure 
about 64-bit build though.

{code}
C:\>python
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> unichr(0x1d11e)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: unichr() arg not in range(0x10000) (narrow Python build)
{code}


was (Author: phongphan):
[~nsuke] I believe Python 2 build for Windows from 
[python.org|https://python.org] is narrow build, which doesn't support code 
point beyond 0x10000.

{code}

C:\>python
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> unichr(0x1d11e)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: unichr() arg not in range(0x10000) (narrow Python build)
{code}

> Python: UTF-8 sent by PHP as JSON is not understood by TJsonProtocol
> --------------------------------------------------------------------
>
>                 Key: THRIFT-2413
>                 URL: https://issues.apache.org/jira/browse/THRIFT-2413
>             Project: Thrift
>          Issue Type: Sub-task
>          Components: Python - Library
>            Reporter: Jens Geyer
>            Assignee: Phongphan Phuttha
>




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

Reply via email to