Archive for January 31st, 2008

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

1 comment January 31st, 2008


Calendar

January 2008
M T W T F S S
« Dec   Apr »
 123456
78910111213
14151617181920
21222324252627
28293031  

Posts by Month

Posts by Category