Jan Schneider wrote:
Second question: Since iconv's output buffering charset conversions doesn't seem to work quite well, I tried to use mbstring's one. But afaics it doesn't support converting into utf-8. Is there any other preferred method to convert to utf-8?
Sorry, not converting _to_ uft-8 but _from_ gb2312 was the problem. Looking at the manual I found that this charset is not supported. I guess the best solution would be to fall back to iconv() if mb_convert_encoding() fails. But how do I know if mb_... failed?

Btw, this problem didn't happen with output buffering but manual converting from gb2312 to utf-8.

Jan.


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to