Android program character encoding in eclipse is inconsistent

Source: Internet
Author: User

 

Problem description:

Chinese characters are garbled and incompatible. English is fully compatible with big5, GBK, and utf8!
The big5-encoded traditional Chinese characters cannot be displayed in the simplified win7 system. If you want to display them, you must install the traditional Chinese Language Pack.

 

Solution:
1. *. the Java source code is converted to the utf8 format, so that it can be used on the Windows 7 (traditional/Simplified) platform. The XML file is originally UTF-8 encoded without BOM format and supports simplified Chinese characters.
2. You can set different workspace directories to mark projects with different codes, such as GBK/utf8.

 

Other problems:
What is the default encoding format in Linux? What is the Chinese/English encoding format supported on Windows/Linux?
--- View my blog posts!

 

Supplement:

If the encoding format is supported in Notepad ++, you can use Notepad ++ for transcoding or a transcoding tool. However, if you do not know the encoding format of the source file, but it is garbled on the target system, so this time it is very difficult to do!

Must be: known file encoding format ---> recognizable transcoding format to the Local Machine

Notepad ++ Transcoding:

 

 

 

Related reading:

Eclipse sets soft tab (replaced by four spaces) and defaultUTF-8 file encoding (UNIX)
Http://hi.baidu.com/loyaltyji/item/61473f8b4a5baec799255f58

 

Differences between ANSI, utf8, Unicode, and ASCII Encoding
Http://hi.baidu.com/christworld/item/f0012cdad702083ce3108f24

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.