On 2004/02/10, at 9:39, walter fan wrote:
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.
Perhaps you don't issue a correct HTTP header to the browser.
Just add header('Content-Type: text/html; charset=UTF-8') at the top of your script.
And try using bind_textdomain_codeset() to specify the output charset, which you
want to send the texts as.
Btw, why the translation strings still display by gettext after I deleted the po and mo files in locale folder?
Do you mean translated strings continue to appear if the message catalogs are removed?
Maybe you have two or more base directory and you are specifying another base to bindtextdomain()
which isn't involved with the removed catalogs.
Moriyoshi
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
-- PHP Internationalization Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php