Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

encode

javac

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

like image 334
user1232236 Avatar asked Feb 05 '26 22:02

user1232236


1 Answers

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

like image 73
kentcdodds Avatar answered Feb 08 '26 12:02

kentcdodds



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!