Great help, thank you very much.
Regards,
Giuseppe.

On Wed, Jan 12, 2011 at 8:00 PM, Dieter Verfaillie <
diet...@optionexplicit.be> wrote:

> On 12/01/2011 16:24, Giuseppe Penone wrote:
> > Yes I also was thinking that, being the first two chars not valid (\0xff
> and
> > \0xfe)
>
> That would be the BOM (Byte Order Mark)...
>
> , the problem is that I cannot find a reference to understand what is
> > the encoding according to those chars.
>
> ... for UTF-16LE (or UTF-16 for short). You'll also want to be careful
> about NULL characters.
>
> The attached fragment accepts "html" pastes from firefox/thinderbird
> and correctly shows the Arabic fragment from your original message
> when copied from thunderbird.
>
> Hey, it even honors RTL, which is kinda neat :)
>
> mvg,
> Dieter
>
_______________________________________________
pygtk mailing list   pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to