dongqiao5573 2015-02-03 08:59
浏览 29
已采纳

如何从json获取marathi unicode前面并在android上显示

I have marathi data stored in mysql database and want to display in android using json, I am able to get the English data, but if trying to get the marathi it displays "?????" even when i print json on browser it also shows "????" i am using php for defining web service.

My json Output:

[{"heading":"??? ???? ","details":"??? ???? ???? ??????????? ??? ?? ????? ?????????? ???? ???????? ??????? ??????? ???? ?? ??????? ???? ????? ??? ?????????? ????? ?? ?????????? ??? ??? ??????????? ??????????? ? ???????????? ?? ???. ????? ????????? ????? ?????? ????? ?????????? ?????? ??"}]

values are coming to android but displaying like "???????"

enter image description here

how to do it??

  • 写回答

2条回答 默认 最新

  • douji8549 2015-02-03 09:03
    关注

    Are you using utf8 in your database tables & php database connection (you have to run "SET NAMES utf8" after connecting to mysql)?

    If so, does it work correctly in desktop browser? If it does, I suppose you have to use different font, if not, then you have to fix your database/connection encoding

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 程序不包含适用于入口点的静态Main方法
  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记