View Single Post

  #5 (permalink)  
Old 04-23-2008
tedd
 
Posts: n/a
Default Re: [PHP] mb_convert_encoding converting to ASCII instead of UTF-8

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
Reply With Quote