iphone sdk ,撇号显示为问号

发布于 2024-08-22 11:24:35 字数 105 浏览 2 评论 0原文

单引号和双引号(更具体地说是撇号)在我的文本视图上显示为问号。
当我尝试从网页复制并粘贴某些内容并保存时,问题就出现了。 当我输入句子时,不会出现这个问题。 如何用常规单引号替换撇号?

The quotation marks (apostrophe to be more specific) single and double are displaying as question mark on my text view.
The problem come up when I try to copy and paste some thing from a webpage and save it.
This problem does not happen when I type the sentence.
How can I replace a apostrophe with a regular single quote?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

靑春怀旧 2024-08-29 11:24:35

当您从网页复制时,您并不是复制普通的旧撇号。你正在复制一件看起来非常相似但实际上并非如此的精美作品。由于文本视图仅显示纯文本,因此它无法理解您花哨的撇号。

当您从网页复制时,您必须手动删除并重新输入撇号。

您必须使用 unicode 字符进行字符串替换。以下可能是您要替换的字符:

Char   Unicode    HTML
“      8220        “     
‘      8216        ‘     
”      8221        ”     
’      8217        ’     

When you copy from a webpage you are not copying a plain old apostrophe. You are copying a fancy one that looks very similar but is not. Since the text view only displays plain text it cannot understand your fancy apostrophe.

When you copy from a webpage you will have to manually delete and retype the apostrophes.

You have to do a string replace probably with unicode characters. The following may be the characters that you want to replace:

Char   Unicode    HTML
“      8220        “     
‘      8216        ‘     
”      8221        ”     
’      8217        ’     
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文