Solution to Chinese garbled Characters During sublimetext2 Compilation

Source: Internet
Author: User
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




Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.