gpt4 book ai didi

iphone - 将特定符号从 json 转换为普通 utf-8

转载 作者:行者123 更新时间:2023-11-29 11:14:31 24 4
gpt4 key购买 nike

我从服务器获取 json 字符串。然后我使用 SBJSON 库解析它。但是当我在我的标签中显示解析结果时,我有这样的符号

!

(通常是!)。

那么如何将我的 json 字符串转换为普通字符串呢?

最佳答案

使用这个:https://github.com/mwaterfall/MWFeedParser/blob/master/Classes/NSString+HTML.m (特别是 stringByDecodingHTMLEntities 方法)。

关于iphone - 将特定符号从 json 转换为普通 utf-8,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10048377/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com