When I use tRESTClient, it transform french character like € into \u20ac event if it's ok when test with Postman

Seventeen Stars

When I use tRESTClient, it transform french character like € into \u20ac event if it's ok when test with Postman

Hi everybody ,

As I said in title I cannot retrieve carater  € in json tRestClient output.

Try to add Http header 'charset" = UTF-8 but noway.

 

In fact all french character are in unicode value starting by '\'

Testing with poman it's OK

"

Localisation": "Auvergne-Rhône-Alpes",
            "Millésime minimum": "2016",

 

Any help will be appreciated

 

regards

kzone
            "Prix maximum": "37500 €"

"

 

 

Employee Ram
Employee

Re: When I use tRESTClient, it transform french character like € into \u20ac event if it's ok when test with Postman

If you have this issue in Runtime you need to verify the Encoding used by the container.

 

You can set the Encoding in Runtime using the wrapper additional parameter 

ex: wrapper.java.additional.xxxx = -Dfile.encoding=UTF-8

 

In studio you can try to add this as a JVM option in the Job -> Run -> Advance settings

Seventeen Stars

Re: When I use tRESTClient, it transform french character like € into \u20ac event if it's ok when test with Postman

thanks but doesn't work Smiley Sad

 

And I don't want to do a hack mapping french character in the flow Smiley Happy

 

regards

laurent (kzone)

Seventeen Stars

Re: When I use tRESTClient, it transform french character like € into \u20ac event if it's ok when test with Postman

little more precision :

 

in fact in postman it's OK with "prettry" view, but with raw view it's the same 'problem' :

"Prix maximum":"37500 \u20ac"}