Re: mb_convert_encoding converting to ASCII instead of UTF-8
| From: | tedd | Date: | Wed, 23 Apr 2008 17:25:22 +0000 |
| Subject: | Re: mb_convert_encoding converting to ASCII instead of UTF-8 | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-273473@lists.php.net to get a copy of this message | ||
At 11:28 AM -0400 4/23/08, Robert William Vesterman wrote:
A little additional info: The "ASCII to ASCII" case for "Minnie=Mouse" is merely because the UTF-8 encoding for "Mouse" is the same as the ASCII encoding for "Mouse", and mb_detect_encoding is matching on ASCII before UTF-8. So that's not an issue. But, the "UTF-8 to ASCII" case for "Minnie=Miñoso" is still (seemingly) screwy.Going for "UTF-8 to ASCII" is not going to work. The ASCII to UTF-8 works because ASCII is contained within UTF8. But the reverse is not true. Not all of UTF-8 is contained within ASCII. For example, the character (code-point) ñ does not appear in ASCII, so that doesn't work. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com