2008-04-20
Google App Engine的HelloWorld程序运行通过
开始学习和使用Google App Engine, 并把HelloWorld程序运行起来了.
app.yaml
application: helloworld
version: 1
runtime: python
api_version: 1
handlers:
- url: /.*
script: helloworld.py
version: 1
runtime: python
api_version: 1
handlers:
- url: /.*
script: helloworld.py
helloworld.py(加入了中文测试)
#coding=utf-8
print 'Content-Type: text/plain'
print ''
s = 'Hello, world!中文123'
print unicode(s,"utf-8").encode("gbk")
print 'Content-Type: text/plain'
print ''
s = 'Hello, world!中文123'
print unicode(s,"utf-8").encode("gbk")
显示中文真的如此麻烦吗?
- 18:47
- 浏览 (204)
- 评论 (0)
- 分类: Python/Django
- 相关推荐
发表评论
- 浏览: 43675 次
- 性别:

- 来自: 上海

- 详细资料
搜索本博客
最新评论
-
用 GlassFish v2 替换 Tom ...
tomcat reloadable后gc没有进行的问题确实存在,不知道后续的版本 ...
-- by mmikey -
用 GlassFish v2 替换 Tom ...
你好 ! 一直非常欣赏这个帖子,如果你能有时间来参加GLASSFISH社区 ...
-- by judytang -
发现JavaScript中可以替代 ...
虽然效果一样.但更习惯于原始的写法.其实习惯了也一样.只是大众程序员们都不多习惯 ...
-- by ╭冷★雨╮ -
用 GlassFish v2 替换 Tom ...
怎么我在安装Glassfish执行 ant -f setup.xml 后,在bi ...
-- by goodfifa07 -
用 GlassFish v2 替换 Tom ...
terranhao 写道问题是myeclipse不支持richfaces的标签, ...
-- by gml520






评论排行榜