ArticleDirectory
- Enable Aptana to support Chinese Characters
Most of Sohu's web pages are GBK-encoded (it is said that the same is true for Sina). The newly installed aptan studio will report the GBK or gb2312-encoded documentCharacter encoding GBK is not supported by this platformThe error. Why?
Enable Aptana to support Chinese Characters
Article category:Web Front-endKeywords: Software
Many methods on the Internet: Aptana Studio supports Chinese: in the Windows menu → preferences → General → content types, select text, specify the default encoding as GBK at the bottom, so that we can, but I tried it, but it still does not support Chinese. When you open a page encoded with GBK, the Unsupported encoding ......
So how can we make Aptana truly support Chinese? We all know that Aptana Studio and eclipse have very similar interfaces, which may be basically the same. Why do we support Chinese GBK encoding in eclipse 3. X while Aptana does not? As we all know, the JRE in ecplise has a package that supports multiple languages. Aptana does not support Chinese GBK encoding. It must have not been included in Aptana. Therefore, I use a comparison tool, comparing Aptana and ecplise (the JRE used), we found that there is a charsets package in JRE. jar, copy the package to the JRE/lib directory of Aptana. After starting Aptana, the result will no longer prompt that GBK encoding is not supported.
To enable Aptana to support Chinese, we should do two things: add the multi-country Language Pack (charsets. Jar) to the lib directory of Aptana's JRE; and set the text encoding.
Http://dl.javaeye.com/topics/download/902d34b0-62b0-3299-ba30-12df6f3ec4f9