解决了。

按jhuangjiahua提示:在文件头加上
# -*- coding: UTF-8 -*-
加上这个声明GAE 就能认了,中文显示正常

以前我加的是 
#!/usr/bin/env python
# coding : UTF-8

这个不行



-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 晏子
发送时间: 2009年5月5日 11:15
收件人: ulipad
主题: [ulipad:4253] Re: Issue 185 in ulipad: ulipad 保存文件的时候,把编码的
声明字符去掉了?

可是在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