Differences between revisions 1 and 11 (spanning 10 versions)
Revision 1 as of 2004-08-12 21:21:57
Size: 255
Editor: Zoom.Quiet
Comment:
Revision 11 as of 2005-01-16 15:44:50
Size: 2880
Editor: Zoom.Quiet
Comment:
Deletions are marked like this. Additions are marked like this.
Line 6: Line 6:
大家一起来总结,争取形成一个中文Python 开发常用库出来?!
Line 9: Line 11:
 * [http://nocache.czug.org/blog/panjunyong/python-encoding Python的编码处理技术] -- CZUG的整理
Line 10: Line 13:
 * [http://www.linuxforum.net/forum/showflat.php?Cat=&Board=python&Number=495520&page=&view=&sb=&o=&vc=1 在Python中使用中文]
 * [http://www.linuxforum.net/forum/showthreaded.php?Cat=&Board=python&Number=495807&Search=true&Forum=python&Words=gb&Match=Entire%20Phrase&Searchpage=0&Limit=25&Old=allposts&Main=495520 关于何时需要码制转换的一些考虑]
=== Web的中文处理 ===
 * [http://www.linuxforum.net/forum/showflat.php?Cat=&Board=python&Number=352059&page=&view=&sb=&o=&vc=1 页面的编码选择]
 * [http://www.linuxforum.net/forum/showflat.php?Cat=&Board=python&Number=444261&page=&view=&sb=&o=&vc=1 CGI的Py中文处理]
Line 11: Line 19:
= GB与Big5 = == 中文的支持 ==
 * [http://cjkpython.i18n.org/ cjkpython]-- 标准的亚洲支持编辑 Python版本
 * 如何让Python 支持GB?
   * [http://www.donews.net/limodou/archive/2004/03/30/9429.aspx 如何让python支持gb2312解码]
   * [http://pyrecord.freezope.org/download/gb2312.zip/down GB2312解码文件]
 * 如何让Python 支持Big5?
 * [http://www.linuxforum.net/forum/gshowflat.php?Cat=&Board=python&Number=284910&page=3&view=collapsed&sb=5&o=all&fpart= 生成GB2312字符集的内码表]
 * [http://www.linuxforum.net/forum/gshowflat.php?Cat=&Board=python&Number=387330&page=2&view=collapsed&sb=5&o=all&fpart= 实现Plone的GB2312编码]
== GB与Big5 ==
 * 如何在Python中进行 GB到Big5的转换?
  * (代码)[http://pyrecord.freezope.org/download/pygb2big.zip/down GB与Big5码互换]
 * 如何在Python中进行 Big5到GB的转换?
Line 13: Line 32:
= GB与unicode = == GB与unicode ==
 * 如何在Python中进行 GB到unicode的转换?
   * python [http://www.linuxforum.net/forum/showthreaded.php?Cat=&Board=python&Number=427317&page=&view=&sb=&o= 中文解决方法] gb2312 <==> utf8
 * 如何在Python中进行 unicode到GB的转换?
 * 个人建议 --GreyRoar:
    * 1。如非必要,尽量避免转换,直接使用Unicode就可以;
    * 2。尽量不要来回转换;
    * 3。不要假设Unicode是超集。
Line 15: Line 41:
= UTF-8 = == UTF-8 ==
 * [http://www.cl.cam.ac.uk/~mgk25/unicode.html 什么是unicode?什么是UTF-8?UTF-16?] -- FAQ for xUnix
 * [http://www.donews.net/limodou/archive/2004/04/13/12002.aspx UTF-8编码的文件检测函数]
 * 检测函数升级! [http://www.donews.net/limodou/archive/2004/09/23/107404.aspx NewEdit-The change of UTF-8 detecting]
 * attachment:encdet.py Google 列表中提到的处理脚本
Line 17: Line 47:
= 内核支持! =
 * [http://www.chinesepython.org/cgi_bin/cgb.cgi/home.html 中蟒]

收集 Python 开发中对付中文问题的技巧,代码

大家一起来总结,争取形成一个中文Python 开发常用库出来?!

-- Zoom.Quiet [DateTime(2004-08-12T21:21:57Z)] TableOfContents

原则

统一到unicode上来吧!

Web的中文处理

中文的支持

GB与Big5

GB与unicode

UTF-8

内核支持!

ChinesePyFAQ (last edited 2009-12-25 07:17:00 by localhost)