I need to invoke shell script from java and pass UTF-8 characters as arguments(Hebrew/arabic language characters).
But the characters are turned into ????? in shell script.
I am using: Runtime.getRuntime().exec()
to invoke the shell script.
And -Dfile.encoding=UTF-8
, without which the characters in Java itself turn into ????