Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Burgo
Contributor
Contributor

tAzureSynapseInput with special characters

Hi everyone,

i have the following example data in a SQL table:

{àèéìòù}

and then following piece of code:

0695b00000YB5YBAA1.png 

If i run my job with Talend i have the same data, but if i run my job via scheduled task or cmd i have the following:

 

0695b00000YB5Z4AAL.png 

There is something i can do to replace them?

Thanks

Labels (3)
11 Replies
Anonymous
Not applicable

Hello,

Please make sure that the Studio run with the java property "-Dfile.encoding=UTF-8" in .ini file.

It will handle correctly Non English characters and the .bat is created to deal with the java to be used by Studio.

Best regards

Sabrina

 

Burgo
Contributor
Contributor
Author

Hi Sabrina,

thanks for the reply.

 

In TOS_ESB-win-x86_64.ini file i've already that line:

 

0695b00000YBLSnAAP.png 

I've tried adding the same line in .bat and this is the result running it:

 

0695b00000YBLQ8AAP.png 

 

Thanks.

 

 

Anonymous
Not applicable

Hello,

Could you also try to solve the problem by editing the job *.bat file in a notepad and adding -Dfile.encoding=utf8 after the java word?

Feel free to let us know if this solution works?

Best regards

Sabrina

Burgo
Contributor
Contributor
Author

Hi Sabrina,

i've already tried, like you see in my previous post, and the final result is this:

 

0695b00000YBtonAAD.png 

 

 

Thanks.

 

Anonymous
Not applicable

Hello,

Does it work in .bat file when using tfileinputXXX component with special characters instead of tAzureSynapseInput?

Best regards

Sabrina

 

Burgo
Contributor
Contributor
Author

Hi Sabrina,

thanks for the reply.

 

With tFileInputDelimited i've the exact same behaviour: 

 

0695b00000YCGW3AAP.png 

1) Run from Talend --> OK: 

 

0695b00000YCGXpAAP.png 

2) Run from cmd without adding -Dfile.encoding=utf8 --> KO:

 

0695b00000YCGa5AAH.png 

3) run from cmd adding -Dfile.encoding=utf8 --> KO:

 

0695b00000YCGbmAAH.png 

0695b00000YCGcLAAX.png 

 

Thanks.

Anonymous
Not applicable

Hello,

In Talend studio, please go to: "File -> edit project properties -> build -> shell -> bat" and then you have to add this line "-Dfile.encoding=utf-8" after "java" like shown in the attached file. This option will start the CMD with UTF-8 encoding.0695b00000YCVRrAAP.png

Burgo
Contributor
Contributor
Author

Hi Sabrina,

done like you said but same behaviour (like editing .bat directly) again:

 

0695b00000YCYElAAP.png 

0695b00000YCYHLAA5.png 

 

 

Thanks.

 

Anonymous
Not applicable

Hello,

Have you tried to use utf-8-BOM?

For more information about Unicode character encoding, please have a look at this documentation

https://www.w3.org/International/articles/definitions-characters/

Hope it will help.

Best regards

Sabrina