我想粘贴印地文字符数组中包含元素
的String [] ARR = {आपकास्वागतहै,आपकास्वागतहै};
但它给错误即
的Cp1252字符编码有些字符不能使用映射
同时节省了这一点。
I am trying to paste Hindi characters in an array with elements like
String[] arr = {"आपका स्वागत है","आपका स्वागत है"};
but its giving error i.e.
"some characters cannot be mapped using "Cp1252" character encoding"
while saving this.
谢谢,我找到了解决办法...
Thanks i found the solution...
创建值文件夹下的数组 使用支持印地文下的资产文件夹的字体 textview.setTypeface(Typeface.createFromAsset(getAssets(),字体/ Hindi.ttf));
其工作正常...
create an array under the value folder
Use the font that support Hindi under the assets folder
textview.setTypeface(Typeface.createFromAsset(getAssets(),"fonts/Hindi.ttf"));
its working fine...