Re: [PHP] mb_convert_encoding converting to ASCII instead of UTF-8

2008-04-23 Thread Robert William Vesterman
ASCII characters, which mb_detect_encoding therefore said was ASCII. tedd wrote: 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 sa

Re: [PHP] mb_convert_encoding converting to ASCII instead of UTF-8

2008-04-23 Thread Robert William Vesterman
And the culprit is that mb_detect_order() wasn't set up to handle ISO-8859-1. It was "ASCII, UTF-8". Changing it to "ASCII, UTF-8, ISO-8859-1" makes everything work as expected. Robert William Vesterman wrote: OK, now the problem seems to be not that mb_conv

Re: [PHP] mb_convert_encoding converting to ASCII instead of UTF-8

2008-04-23 Thread Robert William Vesterman
( $x ) ) ); output ( "Convert from ISO", mb_convert_encoding ( $x, "UTF-8", "ISO-8859-1" ) ); ?> Output for "Minnie=Mi%F1oso": Raw: Mi?oso ... UTF-8 Convert from detected: Mioso ... ASCII Convert from ISO: Miñoso ... UTF-8 Robert W

Re: [PHP] mb_convert_encoding converting to ASCII instead of UTF-8

2008-04-23 Thread Robert William Vesterman
But, the "UTF-8 to ASCII" case for "Minnie=Miñoso" is still (seemingly) screwy. Robert William Vesterman wrote: I've run into a problem where mb_convert_encoding seems to be converting to ASCII, even though I'm telling it to convert to UTF-8. This is with PHP ve

[PHP] mb_convert_encoding converting to ASCII instead of UTF-8

2008-04-23 Thread Robert William Vesterman
I've run into a problem where mb_convert_encoding seems to be converting to ASCII, even though I'm telling it to convert to UTF-8. This is with PHP version 4.3.11. I had been asking it to convert from "auto" to UTF-8, so at first I thought maybe "auto" was not the right choice. So I called