Charset encoding problem

Hi, I'm trying to make a simple call to the API to do entity tagging in a raw text in French (there are lots of accented characters). I already read the API documentation, I set the header "Content-Type" to "text/raw; charset=utf-8", I checked that the text is certainly encoded with UTF-8.

Here are the headers of my POST request:

postRq.addHeader("x-ag-access-token", "...");

postRq.addHeader("x-calais-language", "French");

postRq.addHeader("outputFormat", "text/n3");

postRq.addHeader("Content-Type", "text/raw;charset=utf-8");

postRq.addHeader("x-calais-contentClass", "news");

postRq.addHeader("Accepted-Charset", "utf-8");

However, I always receive response with strange symbols. Please, could you tell me how to fix it ?

Thanks,

Answers