从Sqlite数据库读取双引号和单引号

发布于 2024-08-08 09:44:40 字数 199 浏览 3 评论 0原文

在我的应用程序中,我试图将一些数据从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

疯狂的代价 2024-08-15 09:44:40

如果你得到一个奇怪的字符(或一组字符)替换 " 和另一个替换 ',你可以扫描字符串并替换。如果不是,那么:

  1. 这很奇怪,
  2. 你应该发布你的代码。

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:

  1. That's very strange, and
  2. You should post your code.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文