Re: a question about Chinese characters in a Python Program

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Terry Reedy

    Re: a question about Chinese characters in a Python Program

    Liang Chen wrote:
    Hope you all had a nice weekend.
    >
    I have a question that I hope someone can help me out. I want to run a Python program that uses Tkinter for the user interface (GUI). The program allows me to type Chinese characters, but neverthelss is unable to show them up on screen. The follow is some of the error message I received after I logged off the program:
    >
    "Could not write output: <type "exceptions : UnicodeEncodeEr ror'>, 'ascii' codec can't encode characters in position 0-1: ordinal not in range (128)"
    >
    Any suggestion will be appreciated.
    Start with the Unicode HOWTO in the HOWTOs part of the Manual set.

    For 2.6
    Release, 1.12,. This HOWTO discusses Python’s support for the Unicode specification for representing textual data, and explains various problems that people commonly encounter when trying to work w...

    For 3.0, which has been updated in spite of the warning


Working...