可是在GAE 里,如果没有这个声明,GAE的本地调试环境可以正确显示中文,但是部属到GAEde真实环境,就会报编码错误。

现在我用 ulipad 写 代码,部署前都需要用 editplus 重新保存一遍,非常麻烦。

不知道是我使用上的错误,还是 ulipad 确实存在这个问题。

建议:

    可否像 editplus 一样,增加一个配置项:utf-8 singature: Preserve existing
signature , Always add signature, Always remove  signature  remove


On 5月4日, 下午10时27分, [email protected] wrote:
> Comment #1 on issue 185 by jhuangjiahua: ulipad 保存文件的时候,把编码的声明
> 字符去掉了?http://code.google.com/p/ulipad/issues/detail?id=185
>
> notepad 是自己加的 BOM 头,
> BOM 头不是必须的,也不建议。
>
> Python 解释器可以看代码前边类似
> # -*- coding: UTF-8 -*-
> 来识别编码。
>
> --
> You received this message because you are listed in the owner
> or CC fields of this issue, or because you starred this issue.
> You may adjust your issue notification preferences 
> at:http://code.google.com/hosting/settings

Reply via email to