Sublimetext2 may contain garbled characters when compiling Chinese characters. It has been tested for a long time according to the methods circulating on the Internet. The following solutions may be found occasionally. I wonder if they are common or not. Please verify them. 1. Compile the runJava. bat script and place it in the bin directory of jdk (a lot of information on the Internet) @ ECHOOFFcd % ~ Dp1ECHOCompiling % ~ Nx1. ...... IFEXIST %
Sublime text2 may contain garbled characters when compiling Chinese characters. It has been tested for a long time according to the methods circulating on the Internet. The following solutions may be found occasionally. I wonder if they are common or not. Please verify them. 1. Compile the runJava. bat script and place it in the bin directory of jdk (a lot of information on the Internet) @ ECHO OFFcd % ~ Dp1ECHO Compiling % ~ Nx1. ...... if exist %
Sublime text2 may contain garbled characters when compiling Chinese characters. It has been tested for a long time according to the methods circulating on the Internet. The following solutions may be found occasionally. I wonder if they are common or not. Please verify them.
1. Compile the runJava. bat script and place it in the bin directory of jdk (a lot of information on the Internet)
@ ECHO OFFcd % ~ Dp1ECHO Compiling % ~ Nx1. ...... if exist % ~ N1.class (DEL % ~ N1.class) javac-encoding utf8 % ~ Nx1IF EXIST % ~ N1.class (ECHO ----------- OUTPUT ----------- java % ~ N1)
Add this line.
Javac-encoding utf8 % ~ Nx1
2. Do not add the encoding 936 code when modifying the Javac. sublime. build File.
Then ctrl + B is compiled and executed through