Re: gettext and utf8

"walter fan" <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
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" <[email protected]> дÈëÓʼþ
news:[email protected]...
> 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

-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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.