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

2006-04-20 Thread David Boddie
Out of interest, I've written some code to show your example text and added it to the PyQt Wiki: http://www.diotavelli.net/PyQtWiki/Decoding_Japanese_Text I used the codec for Shift-JIS to obtain a unicode representation of the string, as Serge suggested. David -- http://mail.python.org/m

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

2006-04-20 Thread Serge Orlov
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. But It didn't when I decoded > it using that charset. But it worked fine with the "shi

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

2006-04-20 Thread John Machin
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 pe

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

2006-04-20 Thread prats
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. But It didn't when I decoded it using that charset. But it worked fine with the "shift-jis" encoding. Is it

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

2006-04-20 Thread Serge Orlov
prats wrote: > I think I could not make myself clear. On the contrary. You've given enough information for me to do what you want: decoding your text and displaying it in a GUI. The fact that I used another GUI is not important, read below why. > I have a GUI written in Python > and Qt and PyQt a

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

2006-04-20 Thread prats
I think I could not make myself clear. I have a GUI written in Python and Qt and PyQt as the python wrappper fro QT. Now I have a string which is base64 encoded. This string contains both japanese and english charaters. I need to decode them and display them properly in the GUI ie. with both englis

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

2006-04-20 Thread Serge Orlov
prats wrote: > Hi all, > this is in continuation to my previous post. > The text I want to display is (in base64 encoding): > This text contains both english and japanese characters i.e first few > english characters followed by some japanese characters. > > the decoded_string variable contains th

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

2006-04-19 Thread prats
No I need to replace the text given by the user in the GUI by a new text already in ISO-2022-JP encoding. Then I would have to redisplay this new text. I explain in detail. I have a text file(say) which has something written in it using base64 encoding and using charset ISO-2022-JP. I want to displ

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

2006-04-19 Thread David Boddie
[Posting via Google's web interface again and hoping that double newlines will prevent insane concatenation of lines...] prats wrote: > I want to write a GUI application in PYTHON using QT. This application > is supposed to take in Japanese characters. I am using PyQt as the > wrapper for using

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

2006-04-19 Thread prats
I want to write a GUI application in PYTHON using QT. This application is supposed to take in Japanese characters. I am using PyQt as the wrapper for using QT from python. I am able to take input in japanese. But I am unable to display them back to GUI. It displays some junk characters Can anyone s