Javac-encoding UTF8 in Linux

Source: Internet
Author: User

Because the other responsible for coding colleagues with UTF-8, I use the default encoding format GBK, in the submission of code, in order to accommodate him, I intend to convert the Format tool into Utf-8.

Conversion results, and then make a bit, found that javac-encoding utf-8 through, illegal charater. Use Notepad to see if the UTF-8 format is true.

Another prerequisite is that because the project was run on Linux, we developed it under window. This is the crux of the problem.

In window, the Utf-8 encoded file header was added two additional tags, this is not in Linux, the 16 binary editor to open the file to delete the file header of the two tags just fine

Javac-encoding UTF8 in Linux

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.