Re: Pango Hebrew and Ampersand char

2007-12-01 Thread ik
Thank you and Shachar for the answers.

It appears that actually a function in between changed the encoding to
ASCII based rather kept it as UTF-8.


On Nov 30, 2007 2:14 AM, Dotan Cohen [EMAIL PROTECTED] wrote:

 On 29/11/2007, ik [EMAIL PROTECTED] wrote:
  Hello List,
 
  I have this weird annoying bug on a GTK2 based program.
  When I use Hebrew everything displaied properly, but when I add the
  ampersand char () it will report a warning:
 
  Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
 
  Does anyone have experience with this issue and knows what I'm missing ?
 
  Thanks,
  Ido

 The program may be storing it's info in XML files. Ampersand is an
 illegal character in XML. In any case (XML or not) file a bug with the
 software's author.

 Dotan Cohen

 http://what-is-what.com
 http://gibberish.co.il
 א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?



Ido
-- 
http://ik.homelinux.org/


Pango Hebrew and Ampersand char

2007-11-29 Thread ik
Hello List,

I have this weird annoying bug on a GTK2 based program.
When I use Hebrew everything displaied properly, but when I add the
ampersand char () it will report a warning:

Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

Does anyone have experience with this issue and knows what I'm missing ?

Thanks,
Ido
-- 
http://ik.homelinux.org/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Pango Hebrew and Ampersand char

2007-11-29 Thread Shachar Shemesh
ik wrote:
 Hello List,

 I have this weird annoying bug on a GTK2 based program.
 When I use Hebrew everything displaied properly, but when I add the
 ampersand char () it will report a warning:

 Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

 Does anyone have experience with this issue and knows what I'm missing ?

 Thanks,
 Ido
   
could it be that pango expects  encoding (HTML style) after the ampersand?

Try giving it #32;, and see whether it issues a space. Even better,
try lt; and see whether it generates a 

Shachar

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Pango Hebrew and Ampersand char

2007-11-29 Thread Dotan Cohen
On 29/11/2007, ik [EMAIL PROTECTED] wrote:
 Hello List,

 I have this weird annoying bug on a GTK2 based program.
 When I use Hebrew everything displaied properly, but when I add the
 ampersand char () it will report a warning:

 Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

 Does anyone have experience with this issue and knows what I'm missing ?

 Thanks,
 Ido

The program may be storing it's info in XML files. Ampersand is an
illegal character in XML. In any case (XML or not) file a bug with the
software's author.

Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?