Search code examples
javajavacencode

How to change the defaults system java encode form in windows?


When I tried to compile (use javac)some java sources files include a comment line which has some unrecognized char like ascii code 129 (~A), error got.

The sources code looks like the following:

 // ascii 129 is ? (Acutally it show ~A in VIM but show ? when I directly copy it here)

The above code line is a comment, it should not cause any error, but if it did, I think it should be a problem about the jave encode form, how can I solve this problem?

Thanks.

Wa


Solution

  • Take a look at this answer. It worked for me, and I don't have to worry about it anymore :) https://stackoverflow.com/a/623036/971592