hi i used this screencast to connect my drupal via flex and it works, but... i have a german site and therefore it is necessary to display special chars like "Ä,ä,Ü,ü..." etc. The problem is, that in my flex app the will not displayed correctly! What can I do?

Comments

carlosg2’s picture

I run into this problem with latin characters (áéíóú)

for now, i solve this with encodeURI() and decodeURI() to store and display the data in flex,
but im losing search capability.

g10’s picture

for string conversion (non-english, requires 'iconv' enabled in php, check phpinfo())

adjust 'amfphp.module' line 49
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
to
$gateway->setCharsetHandler("iconv", "UTF-8", "UTF-8");

should do the trick, but to be sure some additional reading:
http://amfphp.org/docs2/installation_gateway.html

(because it seems somehow to be important to have the database in utf-8 also)

carlosg2’s picture

Works perfect now.

marcingy’s picture

Project: Services » AMFPHP
JoachimVdH’s picture

Status: Active » Closed (fixed)