gnope php gtk gui gnope.org  

Pango-WARNING

 
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners
View previous topic :: View next topic  
Author Message
lirm



Joined: 16 Dec 2005
Posts: 6

PostPosted: Sun Dec 18, 2005 11:15 pm    Post subject: Pango-WARNING Reply with quote

I put

php-gtk.codepage = CP1253

in php.ini, to be able to use greek in my scripts but a problem remains. I get a warning:

(main.php:2692): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

when I use the append method with greek characters

GtkTreeStore->append($node, array('greek characters', 'xxx'));

and these characters don't show in the tree

Any idea?

Minas
Back to top
cweiske



Joined: 08 Dec 2005
Posts: 454
Location: Leipzig/Germany

PostPosted: Mon Dec 19, 2005 8:34 am    Post subject: Re: Pango-WARNING Reply with quote

lirm wrote:
(main.php:2692): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()


Minas, could you please subscribe to php-gtk-general@lists.php.net and send your problem to there? The real php-gtk developers are there and will probably know more about it.
See http://gtk.php.net/resources.php on how to subscribe.
Back to top
lirm



Joined: 16 Dec 2005
Posts: 6

PostPosted: Mon Dec 19, 2005 2:39 pm    Post subject: Reply with quote

Solved in php-gtk-general forum.


For those who are interested, the php.net function iconv() can be used like this:

iconv("ISO-8859-7", "UTF-8", "greek characters")


http://gr2.php.net/manual/en/function.iconv.php
Back to top
Display posts from previous:   
Post new topic   Reply to topic    gnope.org Forum Index -> PHP GTK2 Beginners All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Templates enhanced by DigiWiki. Hosting by Tradebit.