help wanted regarding displaying Japanese characters in a GUI using QT and python

John Machin sjmachin at lexicon.net
Thu Apr 20 07:13:01 EDT 2006


On 20/04/2006 8:15 PM, prats wrote:
> sorry I did not correctly read your point. I works fine. Thanks for
> your help.
> I have one more query. It was said that the text I was supposed to show
> was written using "ISO-2022-JP" charset.

Where more than one encoding is in use for a language, some people just 
guess. I've seen this with ASCII/EBCDIC and GB[K]/Big5.

> But It didn't when I decoded
> it using that charset. But it worked fine with the "shift-jis"
> encoding. Is it the default charset used by python i.e. I mean to say
> bytes would be by default "shift-jis"? 

That may be Ruby's default, although I doubt it. Python was originally 
written in Old High Dutch, but PEP 0.0001 did away with the ij ligature 
so that Python could be expressed in ASCII, which has been the default 
encoding ever since.



More information about the Python-list mailing list