Re: mbstring and iconv status and conversion problems
| From: | Jan Schneider | Date: | Mon, 23 Dec 2002 19:19:12 +0000 |
| Subject: | Re: mbstring and iconv status and conversion problems | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-129220@lists.php.net to get a copy of this message | ||
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.