iphone sdk ,撇号显示为问号
单引号和双引号(更具体地说是撇号)在我的文本视图上显示为问号。
当我尝试从网页复制并粘贴某些内容并保存时,问题就出现了。 当我输入句子时,不会出现这个问题。 如何用常规单引号替换撇号?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您从网页复制时,您并不是复制普通的旧撇号。你正在复制一件看起来非常相似但实际上并非如此的精美作品。由于文本视图仅显示纯文本,因此它无法理解您花哨的撇号。
当您从网页复制时,您必须手动删除并重新输入撇号。
您必须使用 unicode 字符进行字符串替换。以下可能是您要替换的字符:
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: