Component tFileUnarchive - Archive file with special charater

One Star

Component tFileUnarchive - Archive file with special charater

Hi,

My Talend Job is really simple, i have a tFileList component  connect with a tFileUnarchive component (iterate).




I have an issue when my .zip contains files with special character in the filename (like ü)



When the .zip file is unarchive, there is a black square with ?  in the filename of the extract file instead of ü.



Is there a solution for this issue ?

Regards,

Sam.
Moderator

Re: Component tFileUnarchive - Archive file with special charater

Hi,
Have you tried to switch encoding code of TOS from UTF 8 to UTF 16?
Go to Talend.exe folder 
Open TOS_DI-win32-x86.ini (config file)
Replace "-Dfile.encoding=UTF-8"
to "-Dfile.encoding=UTF-16"
same for 
TOS_DI-win32-x86_64.ini
restart TOS

Let me know if it is OK with you.
 
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.
One Star

Re: Component tFileUnarchive - Archive file with special charater

Hi Sabrina, 
Thanks for your response !
I tried to switch encoding as you said, but when i try to build the job, i have this issue :

Exécution en erreur :Échec de la génération du code.
[color=#cc3333][org.eclipse.emf.codegen.jet.JETException: Exception surSubprocess_headerJava][/color]


Yeah it's in french, translate to english :

Execution in error : Failed to generate the job.
[color=#cc3333][org.eclipse.emf.codegen.jet.JETException: Exception surSubprocess_headerJava][/color]


I switch back to UTF-8 and the job compile fine.

This is strange...

Sam
Moderator

Re: Component tFileUnarchive - Archive file with special charater

Hi,

Could you please indicate the build version you are using? What's your OS and JDK? Is character "ü" showing well in studio?

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.
One Star

Re: Component tFileUnarchive - Archive file with special charater

Hi,

I'm using Talend Open Studio for Data Integration V 5.4.1.
My OS  : Windows Seven Pro 64bit
JDK : 1.7.0

In studio, i also read a CSV file with all document's filename and the character "ü" is showing well. 

Regards,
Sam.
Moderator

Re: Component tFileUnarchive - Archive file with special charater

Hi,

Is it Ok with you when adding -Dfile.encoding=ISO-8859-15 to the JVM args?
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.
Moderator

Re: Component tFileUnarchive - Archive file with special charater

Hi,

Any update? can we consider your issue as resolved?

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.

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

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch Now

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog