有人捧场没人上台,有问题没解决可不爽,我已经自己找到解决方法了,就是在.py文件的最前面加上# -*- coding: utf-8
-*-即可!!这又是在GOOGLE里找到的

2009/2/2 Junkie o0o <percy....@gmail.com>:
> happy 牛 year!
> 哈哈
>
> 2009/2/2 yu ping322 <yuping...@gmail.com>
>>
>> 在这里混的中国人挺多的,只是很多人的英语也很牛,说英语显摆。
>>
>> 2009/2/2 kang <areyouloo...@gmail.com>:
>> > 一直有中文的啊,新年快乐~
>> >
>> > 2009/1/31 trydofor <trydo...@gmail.com>
>> >>
>> >> 哥们们,
>> >>
>> >> 总算在列表里看到中文啦 :)
>> >> 兴奋啊,祝新年快乐,牛年牛B
>> >>
>> >> kang wrote:
>> >> > 在文件开始加上#coding=utf-8
>> >> >
>> >> > 2009/1/22 网页中有汉字,就会产生错误,不知是啥原因 <hjma...@gmail.com
>> >> > <mailto:hjma...@gmail.com>>
>> >> >
>> >> >
>> >> >     this code right in local development environment, but error on
>> >> > update
>> >> >     to server.
>> >> >
>> >> >     import wsgiref.handlers
>> >> >     from google.appengine.ext import webapp
>> >> >
>> >> >     class MainPage(webapp.RequestHandler):
>> >> >      def get(self):
>> >> >        self.response.headers['Content-Type'] = 'text/html;
>> >> > charset=utf-8'
>> >> >        self.response.out.write('<html><body><p>Hello, have no thing,有
>> >> >     了汉字就不
>> >> >     灵了?</p></body></html>')
>> >>
>> >> --
>> >> ____/\______________________________/\___________/\/\/\________________
>> >> _/\/\/\/\__/\__/\__/\____/\________/\____/\_____/\________/\_____/\__/\
>> >> __/\______/\_/\_____/\__/\___/\_/\/\__/\___/\__/\/\/\__/\___/\__/\_/\__
>> >> _/\______/\__________/\/\__/\____/\__/\___/\__/\______/\___/\__/\______
>> >> /\/\____/\____________/\____/\/\/\_____/\____/\_________/\____/\_______
>> >> _________________/\/\/\________________________________________________
>> >> _________/ trydofor.com / a9text.sf.net / a9w3.sf.net /________________
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > Stay hungry,Stay foolish.
>> >
>> > >
>> >
>>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to