Android coding problems

Source: Internet
Author: User

Android engineering coding problems

1. Window | Preferences | General | Content Types | right select Text | Java Source File | Default encoding at the bottom enter the UTF-8 and click Update

Set all java files to UTF-8 by default

2. Window | Preferences | Workspace | Text file encoding | UTF-8 encoding.

Define the encoding format of the entire Workspace

3. Right-click the project | Properties | Resource | Text file encoding | UTF-8 encoding.

Define the code of the entire project

4. Right-click a file | Properties | Resource | Text file encoding | UTF-8 encoding.

Define the encoding of a single file

5. runtime Encoding settings: menu: Run Configuration | Console Encoding of the Common tab on the right select UTF-8 Encoding.

The encoding format is generally determined by the minimum unit. That is, the encoding of a single file is checked first, the encoding of the Project is checked again, and the encoding of the entire workspace.

Encoding Problems no longer exist during packaging.

 

Related Article

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.