Four Stars

[resolved] Encoding UTF-8 and ISO-8859-1 - Unix and Windows

I have problems with ISO 8859-1 to write on IBM Solid base hosted on a Windows server (encode ISO-8859-1).
1) When I run my service locally, on a Windows server, I can change the advanced settings of the JVM on a specific job.
Like that :
Argument : file.encoding=ISO-8859-1
2 When I deploy my service on a Unix server, the ISO-8859-1 encoding does not apply. The only solution I've found to solve this problem is to change the settings directly in the JVM config file wrapper (on Unix Server):
# JVM Parameters
# Note That n is the parameter number starting from 1. -Dkaraf.home =% =% KARAF_HOME
= -Dkaraf.base KARAF_BASE% =%
= KARAF_DATA% =% = = -Dkaraf.startLocalConsole = false = -Dkaraf.startRemoteShell = true = -Dfile.encoding = ISO-8859-1
However, this solution does not suit me because it changes the encoding of the JVM that is UTF-8 (impact on Java webapps, others Talend jobs, ...) . Do you know anyway of forcing encoding to ISO-8859-1 for the only one service ?
Thank you!
Four Stars

Re: [resolved] Encoding UTF-8 and ISO-8859-1 - Unix and Windows

Finally, I found a solution, which is create a new Karaf container, and deploy specific services on this container.
Then, you can modifiy the wrapper config of your new container (adding this JVM parameter): = -Dfile.encoding = ISO-8859-1