One Star

Setting Char Encoding for tBufferOutput_1 / Web Service DI Job

I am using Talend DI (not ESB) to create a simple web service.    

 

When I right click on the Job and select Build Job, I am able to select "Axis WebService (WAR)".    However I do not see anywhere I can set the encoding type to UTF-8.

 

Here is my simple job that I am exposes as a web service.

 

WebService.PNG

 

I deployed the service as a WAR file into my J2EE container and it works fine when processing arguments that use ANSI characters.

 

However when I attempt to pass in UTF-8 Characters (that are not in the ANSI character set).   I get this error.

 

CharError.PNG

The file.encoding JVM argument will most likely not work here because it isn't a file.   It's a stream output from tBufferOutput.

 

Any ideas?

 

  • Data Integration
Tags (2)
1 REPLY
Moderator

Re: Setting Char Encoding for tBufferOutput_1 / Web Service DI Job

Hi,

This should be fixed by running the JVM in the proper encoding.

Could you please try to add the "Dfile.encoding=utf-8" to the JVM parameters of job review to see if it works?

jvm.png

Best regards

Sabrina

 

 

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.