How convert text file between locale encoding and UTF-8?



Dear Friends:

Wondering that is there neat way to do "subject line" in Python? I am
talking about Python 2.4 with Win32 extension installed. The locale can
be any of ANSI defined, for example, zh_CN (CP936) or Korea (CP949)
..........

I am not expert in Python, if you well note I will appreciate a lot.

Rgds, David Xiao

.



Relevant Pages

  • Re: Python-list Digest, Vol 18, Issue 366
    ... I have a doubt in python curses.... ... > I think you're misusing locale. ... > Convert the string to int then cast the int to enum with static_cast. ... > I'm trying to use setattr inside a module. ...
    (comp.lang.python)
  • Re: Locale confusion
    ... > frailea> cat foo ... > When I paste it into an interactive Python session, the locale is ... > frailea> python foo ...
    (comp.lang.python)
  • Re: WTF? Printing unicode strings
    ... variable to Linux and python will know that your terminal is utf-8. ... chose debian 3.1 minimal network install and after answering all ... I would expect utf-8 english locale to be present even in ...
    (comp.lang.python)
  • Re: WTF? Printing unicode strings
    ... variable to Linux and python will know that your terminal is utf-8. ... chose debian 3.1 minimal network install and after answering all ... I would expect utf-8 english locale to be present even in ...
    (comp.lang.python)
  • Re: Unicode and Zipfile problems
    ... The Python interpreter. ... >You can add a warning filter to site.py. ... you get an exception because there is a German umlaut ... representation for the current locale. ...
    (comp.lang.python)