7

I have a shell script which runs My Java Application.Now i want to specify encoding format "UTF8" to my java application using shell script can any one help.I am using mac os.

Thanks
Ganesh

1
  • What do you mean by "specify encoding format "UTF8" to my java application"? Commented Dec 13, 2010 at 6:02

1 Answer 1

13

Try

//invoking the compiler when your source code contains naked UTF-8 characters.
javac.exe -encoding UTF-8  MyClass.java

and

//setting the default encoding on the command line
java.exe "-Dfile.encoding=UTF-8" -jar myprog.jar

source: http://mindprod.com/jgloss/encoding.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.