Posted by mixey on August 16, 2007 at 11:44am
Hi,
I ran into a problem with encodings. when I'm calling my method throw drupal admin interface it gets all the data I need in correct encoding, but when I'm calling same method throw the flash I'm getting results in wrong encoding, so it's unreadable. I'm getting nodes that are written in russian language
How can it be fixed?
Thank for the help in advance
Comments
module overrrides the gateway settings
I ran into that too. In the amfphp.module file you can change this line:
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
I don't know what the correct encoding is for cyrillic, but sephiroth suggests using this setting as the most generally applicable:
$gateway->setCharsetHandler("iconv", "UTF-8", "UTF-8");
(Drupal data is stored with the UTF-8 encoding by default)
Thank you! You just saved me
Thank you! You just saved me a lot of time!!!
My mistake was, that I tried to do same thing, but in different file (\sites\all\modules\amfphp\amfphp\gateway.php) what is obviously wrong.
Thank you one more time!
UTF-8 always
I always keep all of my data in UTF-8 because the SLovak language has also a lot of strange characters.
Anyway when I throw this line
$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");it works as well for me and slovak language.
thx