Re: [PHP-GTK] Rs: Problem with GtkEntry and specials chars
[email protected] (Benjamin FOURTICQ) Sat, 05 Apr 2008 10:58:09 +0200
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
Check your php-cli.in file, you may have a line : php-gtk.codepage = UTF-8 This will allow you to use any special character Then to get and set text for your GtkEntry you can use utf8_encode an utf8_decode... If you use a database to store data, you can also set your database to use UTF8 text. Hope this help, Benjamin. Raphaël Terrettaz a écrit : > Hello ! > > I've a problem with GtkEntry and special chars, like èï, ... > > I've try the example code given for the GtkEntry constructor (example 57, http://gtk.php.net/manual/en/gtk.gtkentry.constructor.php) > > If I write the text "ééèè" in the GtkEntry and push the button, the console text will be "ééee". The last chars have been changed. Is there any way to get special chars ? > > Thank you ! > Raphaël Terrettaz >