Encoding problem
| From: | Guus Ellenkamp | Date: | Mon, 05 Feb 2007 13:04:11 +0000 |
| Subject: | Encoding problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-248328@lists.php.net to get a copy of this message | ||
I have a string with an n with a tilde. mb_detect_encoding says it's UTF-8.
I set the http encoding to UTF-8 and also the internal encoding. However, I
cannot produce proper output with echo $varwithtilde.
echo $returnArray[$i]->address1.' has
'.mb_detect_encoding($returnArray[$i]->address1)
does NOT produce correct output in a browser or with the W3C validator,
although it says the encoding of the var is UTF-8.
What's wrong?