javac and java are in wrong encoding and locale -


i'm on windows 7. system locale zh_cn , there's no way change os's locale. when install java, detected system locale , therefore java , javac will, supposedly print output in localized language (chinese in case). don't want behaviour there's no way change it.

however, doesn't work. tried cygwin, git bash , win cmd, print question marks. see below sample output (from cygwin): enter image description here

anyone has idea how make output english? appreciated!

i believe can this command:

java -duser.language=en -duser.country=us ... 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -