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

March 2010
M T W T F S S
« May    
1234567
891011121314
15161718192021
22232425262728
293031  

Posts by Month

Posts by Category