Re: gettext and utf8
| From: | walter fan | Date: | Tue, 10 Feb 2004 00:39:40 +0000 |
| Subject: | Re: gettext and utf8 | ||
| References: | 1 2 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-667@lists.php.net to get a copy of this message | ||
Hi,Moriyoshi
Thanks for your information. There is a strange thing, I had modified it to charset=UTF-8, it can
not display UTF-8 strings. But I modified it to charset=CHARSET, it's okay. My server is RedHat
Linux7.2.
Btw, why the translation strings still display by gettext after I deleted the po and mo files in
locale folder?
Thanks & Regards,
Walter Fan
----- Original Message -----
From: "Moriyoshi Koizumi" <moriyoshi@at.wakwak.com>
To: "walter fan" <walter@hf.webex.com>
Sent: Tuesday, February 10, 2004 3:37 AM
Subject: Re: [PHP-I18N] gettext and utf8
> On 2004/02/05, at 12:42, walter fan wrote:
>
> > 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.
> >
>
> Be sure to specify "Content-Type" in your po file.
>
> ex.
> "Content-Type: text/plain; charset=gb2312"
> "Content-Type: text/plain; charset=UTF-8"
>
> Moriyoshi
>
>