Posts filed under 'utf8'

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

February 2012
M T W T F S S
« May    
 12345
6789101112
13141516171819
20212223242526
272829  

Posts by Month

Posts by Category