Re: Unicode/UTF-8 Characters
[email protected] (Mark Skilbeck) Wed, 02 Jun 2010 14:00:03 +0100
| Newsgroups | php.gtk.general |
|---|---|
| Message-ID | <[email protected]> |
On 31/05/10 10:28, Jörg Hoffmann wrote:
> Hello,
>
> i need to display this chars from Courier New: ← and √ (221A and 2190) but when I try to display them I get some weird chars shown.
>
> I have created the output with following code:
>
> $text = New GtkLabe(“Two special chars: ←√”);
>
> $text->modify_font(new PangoFontDescription("Courier New Bold 13"));
>
> And then connected it to get it displayed
>
> I´m using php-gtk 5.2.5 on Windows 7
>
> Text editor is good old Notepad, file charset is UTF-8
>
>
>
> Greetings
>
> Jörg
>
>
Allo.
Tell PHP-GTK to use the UTF-8 charset in your loaded configuration file.
<code>
[php-gtk]
php-gtk.codepage = "UTF-8"
</code>
--
Mark Skilbeck
mahcuz.com | gtk.php.net | pecl.php.net/cairo | docs.php.net