AMFPHP is a PHP platform to achieve an open source component similar to Macromedia's product flash recitaling, but because its development is not perfect, it will not display Chinese characters in use, and the reason is that there is a problem during character encoding conversion.
Some people have proposed a solution, which is to remove the process of UTF8 encoding and decoding. But I found that it just solves the string transfer process from Flash to AMFPHP to Flash, which is passed in Unicode, so there is no problem, such as the example of AMFPHP comes. But from Service to Flash still unable to achieve normal display.
So you must correctly / decode to completely solve the problem of displaying Chinese characters.
Solution (as a simplified Chinese character):
Install the ICONV module for PHP, then make the following modifications.
Modify UTF8 encoding (ie UTF8_ENCODE function) process is: ICONV ("GB2312", "UTF-8", $ String)
Modify UTF8 decoding (ie UTF8_DECODE function) procedure: Iconv ("UTF-8", "GB2312", $ String)
The files that need to be modified are:
/flashservices/io/AMFInputStream.php ': /flashservices/io/AMFSerializer.php': /flashservices/sql/adodbRecordSet.php ': /flashservices/sql/mssqlRecordSet.php': /flashservices/sql/mysqlRecordSet.php ': /flashservices/sql/odbcrecordset.php ': /flashservices/sql/postgresrecoset.php':
Screenshot:
About ICONV installation method can refer to PHP.NET related manuals