Re: gettext and utf8

From: Date: Sat, 07 Feb 2004 01:07:01 +0000
Subject: Re: gettext and utf8
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-665@lists.php.net to get a copy of this message
Sorry for my inattention.For issue 1, it have been resolved because I made a mistake: setlocale after the gettext function. For issue 2, my server is redhat linux7.1, I modified charset=UTF-8 to charset=CHARSET in messages.po and re-generated messages.mo, it's okey,but I don't know the reason. Who can tell me? Thanks & Regards, Walter Fan "Walter Fan" <walter@hf.webex.com> дÈëÓʼþ news:20040205034353.92994.qmail@pb1.pair.com... > I have two questions as follows: > > 1. I wrote some codes > sample.php > <META HTTP-EQUIV="Content-Type" > content="text/html;<?=gettext("charset=iso-8859-1")?>"> > > messages.po > msgid "charset=iso-8859-1" > msgstr "charset=gb2312" > > But I found gettext still return "charset=iso-8859-1" > > 2.I modified the charset of php files and messages.po to UTF-8 > > $iconv -f gb2312 -t utf-8 messages_gb2312.po>messages.po > $msgfmt messages.po > > But the page didn't display UTF-8 strings. > > I still research them. Can you answer me for the two questions? > > Thanks & Regards, > Walter Fan

« previous php.i18n (#665) next »