Re: gettext and utf8

"walter fan" <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <004b01c3ef6e$5ecb7920$9fc210ac@devwalter>
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" <[email protected]>
To: "walter fan" <[email protected]>
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
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.