[resolved] thttprequest encoding

Two Stars

[resolved] thttprequest encoding

Hello,
I have a Job with target MySQL database, that work correctly in my development machine (Win 7 32bit) but in production machine (Win Server 2008 R2 64bit) not.
The problem is that thttprequest component, doesn't encoding correctly in producction.
-> Executing Job in Development machine with db Production as target, output: "Ordenador portátil"
-> Executing Job in Production machine with db Production as target, output "Ordenador portátil"
Thanks for any help!

Accepted Solutions
Two Stars

Re: [resolved] thttprequest encoding

Hello,
I find a solution adding -Dfile.encoding=UTF8 to command line Smiley Very Happy
java -Dfile.encoding=UTF8 -Xms256M -Xmx1024M .......

All Replies
Two Stars

Re: [resolved] thttprequest encoding

Hello,
I find a solution adding -Dfile.encoding=UTF8 to command line Smiley Very Happy
java -Dfile.encoding=UTF8 -Xms256M -Xmx1024M .......
Seventeen Stars

Re: [resolved] thttprequest encoding

This is indeed a solution but keep in mind it will affect all file reading/writing procedures in your job!
Moderator

Re: [resolved] thttprequest encoding

Hi,
Have you tried to put -Dfile.encoding=utf8 in Java run/debug parameter for your current job?
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.
Seventeen Stars

Re: [resolved] thttprequest encoding

I guess the best way is to add such option to the advanced settings of this component. I will make a suggestion as JIRA ticket because I have made the last changes on this component.
Moderator

Re: [resolved] thttprequest encoding

Hi fgallego,
Can we consider this topic 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.
Two Stars

Re: [resolved] thttprequest encoding

Hi Sabrina,
Yes, thanks to both for your suggestions.
Best regards!