Character encoding and Rest service

Jean Pierre Malrieu <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.