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.