[ https://issues.apache.org/jira/browse/THRIFT-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994425#comment-12994425 ]
David Reiss commented on THRIFT-1059: ------------------------------------- I'd rather translate the non-ascii characters in the strings to escape codes. > add utf8 coding header to generated file > ---------------------------------------- > > Key: THRIFT-1059 > URL: https://issues.apache.org/jira/browse/THRIFT-1059 > Project: Thrift > Issue Type: Improvement > Components: Python - Compiler > Reporter: david han > > the generated the py file dosn't containts the conding type, > that when the thrift file containts the another language string as the > document or comment , the generated file cannot running. > please add the coding type at the header of the python file just like: > # -*- coding: utf-8 -*- -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira