阅读背景:

How to Use UTF-8 with Python python中使用utf-8

来源:互联网 
[ 2005-October-01 20:15 ]Tim Bray describes why Unicode and UTF-8 are wonderfulmuch better than I could, so go read that for an overview of whatUnicode is, and why all your programs should support it. What I'm goingto tell you is how to use Unicode, and specifically UTF-8, with one ofthe coolest programming languages, Python, but I have also written an introduction to Using Unicode in C/C++.Python has good support for Unicode, but there are a few tricks thatyou need to be aware of. I spent more than a few hours learning thesetricks, and I'm hoping that by reading this you won't have to. This isa very quick and dirty introduction. If you need in depth knowledge, orneed to learn about Unicode in Java or Windows, see Unicode for Programmers. [Updated 2005-09-01: Updated information about XML encoding declarations.] [ 2005-October-01 20:15 ]Tim Bray describes why



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: