2010-12-13 6 views
7

J'ai un script shell qui lance mon Java Application.Now je veux spécifier le format Encoding "UTF8" à mon application Java en utilisant un script shell peut-on help.I suis en utilisant mac os.Définition du format de codage java dans script shell

Merci
Ganesh

+0

Que voulez-vous dire par « spécifier format de codage "UTF8" à mon application java "? –

Répondre

13

Essayez

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

et

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

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

Questions connexes