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

Highlighted
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"}

 

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog