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

Journal
Tuesday April 22, 2003

UTF8 double encoding

I realized shortly after releasing my Google Web API tutorial that some of the results returned from the web service became garbled. Actually I was aware of this issue earlier on but I forgot to fix it before releasing v1.3. The problem arises when a web service returns a UTF8 message, and the PHPObject Gateway encodes it again, so the message is encoded twice!

I first came across this problem when trying out the BabelFish translation web service. I neglected to fix it in v1.3. And when I did the Google tutorial I didn't expect to receive UTF8 messages....

No excuses. This has been fixed and in v1.4 onwards there will be a utf8encode method that you call to switch off UTF8 encoding by the gateway. UTF8 encoding will be on by default unless you switch it off (when consuming web services, for example).

Posted by sunny at April 22, 2003 04:04 PM

 

Comments

 

Post a comment









Remember personal info?







Zones



Forums