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
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
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
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
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
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
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
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
[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
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
10 matches
Mail list logo