从Sqlite数据库读取双引号和单引号
在我的应用程序中,我试图将一些数据从 sqlite 数据库读取到 UITextView 中。
该文本有双引号和单引号,例如:
她说:“凯蒂的钱包已经被 丢失”
当我这样做时,我会得到奇怪的字符来代替双引号和单引号。请帮助我找到一个解决方案来清除这些字符。
。
In my application I am trying to read some data from sqlite database into UITextView.
This text has double quotes as well as single quotes, for ex:
she said : "Katie's purse has been
lost"
when I do this, I get strange characters in place of double and single quotes. Please help me with a solution to scrub these characters off.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你得到一个奇怪的字符(或一组字符)替换
"
和另一个替换'
,你可以扫描字符串并替换。如果不是,那么:If you get one strange character (or set of characters) replacing
"
and another replacing'
, you can just scan the string and replace. If you aren't, then: