Hello,

I'm using gadgets.io.makeRequest with CONTENT_TYPE =
gadgets.io.ContentType.TEXT to read a web page containing special
French characters but the response they are all replaced by the
Unicode replacement character (� or EFBFBD).

Comparing with Fiddler a simple request from a browser and the request
produced by gadgets.io.makeRequest, I see a significative difference
in the HTTP Response headers:

browser: Content-Type: text/html; charset=iso-8859-1
makeRequest: Content-Type: application/json; charset=UTF-8

And more in the HTTP Response data:

browser: the html file with the correct special characters
makeRequest: a json data structure like this

throw 1; < don't be evil' >{"http://...":{"headers":
{...},"body":"<html>\n<head>\n...<\/body>\n<\/html>\n","rc":200}}

where the special characters are replaced by �.
So the reply from the sandbox module (http://
124.ig.sandbox.gmodules.com/gadgets/makeRequest) is already incorrect.

I suppose I need a way to alter the way makeRequest escape or encode
the data but the only parameter I see is
gadgets.io.RequestParameters.CONTENT_TYPE.

Am I doing something wrong or is there a problem with non-English
languages?

Thanks.

Ricardo


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to