Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
Problem processing Chinese
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Anthony Liu, post: 1842810"] I believe that topic related to Chinese processing was discussed before. I could not dig out the info I want from the mail list archive. My Python script reads some Chinese text and then split a line delimited by white spaces. I got lists like ['\xbc\xc7\xd5\xdf', '\xd0\xbb\xbd\xf0\xbb\xa2', '\xa1\xa2'] I had #-*- coding: gbk -*- on top of the script. My Windows 2000 system's default language is Chinese (GB2312) and displays Chinese perfectly. I don't know how to configure python or what else I need to properly process such two-byte-character text. Thanks. __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 [URL]http://mail.yahoo.com[/URL] [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
Problem processing Chinese
Top