Getting weird characters with AMFPHP
Just a small reminder that might help anyone getting some weird characters with AMFPHP. It can happen when you copy a full text from Microsoft Word. And the quotes get inserted in your DB.
You might find some funny results like an Euro symbol appearing throughout your text. Uncomment this line in your amfphp gateway:
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
Here are some examples of text you might find:
‘ = This is the open double quote
’ = This is the close double quote
Here is a good resource if you’re having issues with strange characters and PHP / MySQL: ByteFlex - Fun with utf8, PHP and mysql
Add comment January 31st, 2008