AMFPHPで文字化け

AMFPHPからUTF-8で出力されるはずなのに、Flex側で文字化け。PHPからの出力では、文字化けが発生していないので、AMFPHP側を疑うと、gateway.phpでいらない文字コード変換をしている事が判明。

//Read above large note for explanation of charset handling
//The main contributor (Patrick Mineault) is French,
//so don't be afraid if he forgot to turn off iconv by default!
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");

127行目のsetCharsetHandlerをコメントアウトして、無事に解決。DBも、PHPの内部コードもUTF-8の場合は、この一文をコメントアウトすべしのようだ。

2008年 2月 6日 | Posted in Flash / ActionScript3.0, PHP, PostgreSQL
タグ:
まだコメントはありません。

コメントする

XHTML: 使用可能タグ: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>