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 > >