It helped thank you,
the first hexs being 0xfffe or 0xfeff indicate utf-16.
regards,
Giuseppe.
On Wed, Jan 12, 2011 at 6:15 PM, Tomeu Vizoso wrote:
> On Wed, Jan 12, 2011 at 16:03, Giuseppe Penone wrote:
> > Yes it's mozilla firefox.
> > I tried with
> >
> > input_string.decode("utf-16", "ig
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
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 UT
On Wed, Jan 12, 2011 at 16:03, Giuseppe Penone wrote:
> Yes it's mozilla firefox.
> I tried with
>
> input_string.decode("utf-16", "ignore")
Reading this code helped me with fixing interoperability between Sugar
and Mozilla, but was a long time ago and don't remember the details:
http://mxr.mozi
Yes I also was thinking that, being the first two chars not valid (\0xff and
\0xfe), the problem is that I cannot find a reference to understand what is
the encoding according to those chars.
Looking on the html of the webpage it tells utf-8 but probably then firefox
uses another to fill the clipbo
On 12/01/2011 16:03, Giuseppe Penone wrote:
> Yes it's mozilla firefox.
> I tried with
>
> input_string.decode("utf-16", "ignore")
>
> but what I get is
>
> 猼慰瑳汹㵥昢湯楳敺›㌱┰∻㰾灳湡猠祴敬∽潣潬㩲爠摥∻㰾灳湡猠祴敬∽潣潬㩲戠慬正∻䐾㑅䡇‱❈ㅄ☧‹䥁✠❄⼵ㄧ✠ⱄ䨯
> 䔪✠䐵ⴧ⠠㘹✠㥄䑄䠠䔪㤠䑅⼼灳湡㰾猯慰㹮⼼灳湡
Never had a need for it myself, but I've stumbled ove
Yes it's mozilla firefox.
I tried with
input_string.decode("utf-16", "ignore")
but what I get is
猼慰瑳汹㵥昢湯楳敺›㌱┰∻㰾灳湡猠祴敬∽潣潬㩲爠摥∻㰾灳湡猠祴敬∽潣潬㩲戠慬正∻䐾㑅䡇‱❈ㅄ☧‹䥁✠❄⼵ㄧ✠ⱄ䨯
䔪✠䐵ⴧ⠠㘹✠㥄䑄䠠䔪㤠䑅⼼灳湡㰾猯慰㹮⼼灳湡
Regards,
Giuseppe.
On Wed, Jan 12, 2011 at 3:17 PM, Tomeu Vizoso wrote:
> On Wed, Jan 12, 2011 at 13:34, Giusep
On Wed, Jan 12, 2011 at 13:34, Giuseppe Penone wrote:
> Hi,
> I have a problem with gtk.clipboard() and gtk.selectiondata() in my open
> source app http://giuspen.com/cherrytree
> when pasting clipboard content from arabic website taking data from the
> target "text/html".
What browser is it? I t
Hi,
I have a problem with gtk.clipboard() and gtk.selectiondata() in my open
source app http://giuspen.com/cherrytree
when pasting clipboard content from arabic website taking data from the
target "text/html".
when printing the selectiondata.data I can see that the content is: (print
to terminal)