如何把希伯来字符在Android JAVA文件? [英] How to put Hebrew character in Android JAVA file?

查看:206
本文介绍了如何把希伯来字符在Android JAVA文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于Android平台:



我需要将希伯来字符₪和一些更像אורנג在字符串中检查传入的数据在java文件中。当我把这个字符它显示一个错误,一些字符不能映射使用Cp1252字符编码。更改编码或删除Cp1252字符编码不支持的字符。这些值来自SQLite数据库。请参阅附加的快照。我如何解决这个问题?请给我一些有用的建议。期待听到任何人谁有一个建议我。感谢。

解决方案

请使用Note Pad从eclipse文件夹打开eclipse.ini文件,并在其中加入以下权限。
-Dfile.encoding = UTF-8



还有一些选项:


  1. 要设置每个 WorkSpace 的编码,请使用 Preferences-> General-> Workspace


  2. 要设置每个项目的编码打开项目属性, UTF-8


p>

For Android Platform:

I need to put Hebrew Character ₪ and some more like אורנג in string to check with the incoming data in java file. When I put this character It shows an error like "Some characters can not be mapped using "Cp1252" character encoding. Either change the encoding or remove the characters which are not supported by the "Cp1252" character encoding". These values are coming from SQLite database. Please see the attached snap. How can I solve this? Kindly give me some useful suggestions. Looking forward to hear from anybody who has a suggestion for me. Thanks.

解决方案

Please open your eclipse.ini file from your eclipse folder with Note Pad and put the following permission into that. -Dfile.encoding = UTF-8

Some more options as well:

  1. For setting the encoding on a per WorkSpace basis, use Preferences->General->Workspace

  2. To set the encoding on a per project basis open project properties and change to UTF-8

Hope this one help.

这篇关于如何把希伯来字符在Android JAVA文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆