thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 阿熊 <nickfa...@gmail.com>
Subject charset problem with file Autogenerated by Thrift
Date Mon, 10 Aug 2009 08:59:26 GMT
hi everyone , i'm new to thrift,
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

is there some way to autogenerate the encoding setting comment line for
python?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message