Re: Character encoding and Rest service
Jean Pierre Malrieu <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
That was just a matter of setting the proper encoding in the method that got the response content before handing it to the parser... Sometimes (too often) obvious stuff is not obvious to me.
JPM
Le 18 sept. 2012 à 18:10, Jean Pierre Malrieu a écrit :
> Hi,
>
> I am receiving json data from a rest service.
> I parse it with ERXJSONRestParser
> I am picking up the data I want using calls like:
>
> student.schoolName = (String) aNode.attributeOrChildNodeValue("school_name");
>
> I get Strings like "Lycée 2"
> where I would expect "Lycée 2".
>
> It seems that the encoding (utf-8, but no charset in the response headers) is not properly taken into account. What I am supposed to do to avoid this problem?
>
> TIA
>
> JPM
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> Wonder-disc mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wonder-disc
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Wonder-disc mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wonder-disc