This page is no longer updated - please visit http://ghostwire.com Thank you!
 

« PHPObject »
An Opensource Alternative to Flash Remoting
Current Release
Readme
Notes
Journal
Archives

Notes
Friday May 02, 2003

Using utf8encode() method

The utf8encode method was added in v1.4 to allow switching off utf8 encoding by the gateway. You would normally not be using this method, since most of the time, you would want to receive utf8 encoded messages from the gateway (to display correctly in Flash MX).

However, when you consume web services, the results from the web services are usually already utf8 encoded. In this case, if we do not switch off the utf8 encoding in the gateway, you will receive messages that are encoded twice, resulting in garbled characters for unicode characters.

To switch off utf8 encoding, simply call the utf8encode method passing 'false' as the parameter, before you invoke any remote method.

myObj.utf8encode(false);
Note that you only need to call this method once for the object. This method only switch off utf8 encoding for the object concerned; it does not globally/permanently switch it off at the gateway.

Posted by sunny at May 2, 2003 11:45 AM

 

Comments

 

Post a comment









Remember personal info?







Zones



Forums