On Sun, 10 Jun 2001, Alexandre Fayolle wrote:
> On Sat, 9 Jun 2001, Alexandre Fayolle wrote:
>
> > Now, if the input has some diacritic characters, it is properly echoed. If
> > the response has some diacritic characters, it is *not* displayed in the
> > GtkText widget, though the print statement on the console shows perfectly
> > normal characters.
> >
> > Due to external constraints, the client runs on python 1.52, and the
> > server on python 2.0, but this doesn't seem to be an issue, since, as I
> > said, the print statement shows nice \351 for �, and \352 for �, for
> > instance.
>
> I seem to have omitted some crucial piece of information : the client is
> running on a win2K box, and the server on a linux machine. I tried to
> reproduce this with the client running on a linux box and failed. I
> suspect a unicode problem.
That makes sense. The win32 port of gtk+ uses UTF-8 as its character
encoding -- not latin1 which the server is most likely using. You will
need to do a Latin1 -> UTF-8 conversion, which is most easily done with
Python >= 1.6. Note that you don't want to do such a conversion on the
X11 version of gtk until 2.0 comes out :)
James.
--
Email: [EMAIL PROTECTED]
WWW: http://www.daa.com.au/~james/
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk