在textview

时间:2016-04-04 05:31:05

标签: java android

我正在从API下载JSON数据格式。我一直看到这个符号(’)。通过研究,我意识到它意味着“撇号”。这对用户来说并不吸引人。如何用真正的撇号替换这个奇怪的角色?谢谢

示例:

"title": "Apple engineers could walk away from FBI’s iPhone demands",
      "kwic": "Current and former Apple employees say they’d rather quit than build an iPhone backdoor.",
      "content": "",
      "url": "http://www.cso.com.au/article/596281/apple-engineers-could-walk-away-from-fbi-iphone-demands/",
      "iurl": "http://cdn.cso.com.au/dimg/600x600//idg_sites/logos/cso_1.png",
      "domain": "www.cso.com.au",
      "author": "",
      "news": false,
      "votes": "1",
      "date": 1458389725517,
      "related": [

      ]
    }

将被解析为TextView

1 个答案:

答案 0 :(得分:-1)

试试这个,它会用撇号替换符号

       yourString.replaceAll("’","'");