Hi,

I'm not exactly sure what the issue is here, but my guess is that
makeRequest only supports UTF-8 encoding. If you have control over the
content type of the page you're fetching, I'd see if changing its
encoding to UTF-8 allows you to fetch the page properly.

Best,
Dan

On Nov 7, 11:58 am, Ric <[EMAIL PROTECTED]> wrote:
> 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