如何在联系db(波斯语)中存储unicode字符? [英] how to store unicode character in contact db (persian)?

查看:138
本文介绍了如何在联系db(波斯语)中存储unicode字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我想用persian(unicode)字符串插入android中的联系人数据库但是在手机里我得到类似'?????????'我怎么能在db中存储这个词?

Hi I want use persian (unicode) string to inserting into contact database in android but in the phone i get something like '?????????' how i can store that word in db?

ContentValues values = new ContentValues();
values.clear();
values.put(ContactsContract.Data.DATA3, "شماره");

this.getContentResolver().insert(ContactsContract.Data.CONTENT_URI , values);

推荐答案

不要使用hardcode使用string.xml它将被解决。
don't use hardcode use string.xml it will be solved.


这篇关于如何在联系db(波斯语)中存储unicode字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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