You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "nick fan (JIRA)" <ji...@apache.org> on 2009/08/11 09:09:14 UTC
[jira] Updated: (THRIFT-557) charset problem with file
Autogenerated by Thrift
[ https://issues.apache.org/jira/browse/THRIFT-557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nick fan updated THRIFT-557:
----------------------------
Description:
i find maybe a problem with the thrift idl file
i wrote some struct comment in the idl file with chinese characters (Non-ASCII character ).
then i use thrift generated the python code, it doesn't contains the encoding set comment line:
{code}# -*- coding: utf-8 -*-{code}
when i try to run the serv code ,it's cause SyntaxError: Non-ASCII character '\xxx' in file
maybe we should make a command line option for user to set the encoding.
was:
i find maybe a problem with the thrift idl file
i wrote some struct comment in the idl file with chinese characters (Non-ASCII character ).
then i use thrift generated the python code, it doesn't contains the encoding set comment line:
# -*- coding: utf-8 -*-
when i try to run the serv code ,it's cause SyntaxError: Non-ASCII character '\xxx' in file
maybe we should make a command line option for user to set the encoding.
> charset problem with file Autogenerated by Thrift
> -------------------------------------------------
>
> Key: THRIFT-557
> URL: https://issues.apache.org/jira/browse/THRIFT-557
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Python)
> Environment: ubuntu 9.04,python 2.6
> Reporter: nick fan
> Priority: Minor
>
> i find maybe a problem with the thrift idl file
> i wrote some struct comment in the idl file with chinese characters (Non-ASCII character ).
> then i use thrift generated the python code, it doesn't contains the encoding set comment line:
> {code}# -*- coding: utf-8 -*-{code}
> when i try to run the serv code ,it's cause SyntaxError: Non-ASCII character '\xxx' in file
> maybe we should make a command line option for user to set the encoding.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.