Re: Some questions,
| From: | Nikolajus Krauklis | Date: | Tue, 26 Feb 2002 11:44:50 +0000 |
| Subject: | Re: Some questions, | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1340@lists.php.net to get a copy of this message | ||
Hi Steph and php-gtk-general,
someone said what all php-gtk programs uses UTF8, so i deside to try convert
my language characters to utf8 table chars
but nothing happens?
I know what baltic character 0xFE in utf8 table is 17d, so i do so:
$string = "\0x17d"; but i have no correct output :(
for this moment we can't use lithuanian characters in php-gtk programs.
Maybe someone have an idea or advice?
p.s. i am ISO-8859-13 or cp1257 locales so (utf8_encode() not working)
i spent with this problem very long time and can't find workaround or
problem solving
i use php-gtk-0.1.1a-win32 , php -v > php4.0.8
Nikolajus Krauklis
> Hi Nikolajus,
>
> When you said 'setlocale() not working', there are a few points to
consider (that I just bumped into today when I was looking at something
completely different). Okay, a lot of points.
>
> The first is probably that we already have gtk_set_locale() as part of the
GTK initialisation process in php_gtk+.c , which is why neither it nor
gdk_set_locale() are exposed functions. *You* don't set the locale, the
system does, and Andrei's automated the call. So really the question is,
how can you set your system to have a Lithuanian locale?
>
> The next is that setlocale() apparently shouldn't be called from within a
program that is statically linked to C run-time libraries under win32. This
may explain why, when gtk_set_locale() is called in the win32 version of
GTK+, what we actually end up calling is g_win32_getlocale(), which is a
GLib function which *eventually* returns the windows version of a locale's
language in the standard Unix format.