NSString 中的 unicode 问题

发布于 2024-11-15 11:30:40 字数 135 浏览 0 评论 0原文

我有这样的字符串:“YouTube - VID 0001‏”,我想要这样的字符串:YouTube - VID 0001 这意味着我想删除unicodes。

有没有办法像 iPhone 应用程序一样删除 unicodes,如果可以,请帮助我。

i have string like: "YouTube - ‪VID 0001‬‏" and i want the string like : YouTube - VID 0001 that means i want to remove the unicodes.

is there a way to remove unicodes like ‪ in iphone apps, if so please help me.

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

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

发布评论

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

评论(2

帅的被狗咬 2024-11-22 11:30:40

这个类似的问题和解决方案可以解决您的问题吗?

我还建议您注意链接问题的评论中给出的建议,并确保您有不想要 unicode 的正当理由。

Does this similar question and solution solve your problem?

I'd also recommend heeding the advice given in the comments on the linked question and making sure that you have a valid reason for not wanting unicode.

翻身的咸鱼 2024-11-22 11:30:40

如果您只想删除引号 ("),请尝试此操作

NSString *urString = @"\"YouTube - VID 0001‏\"";
NSString *formattedString = [urString stringByReplacingOccurrencesOfString:@"\"" withString:@""];

Try this if you just want to remove the quotes (")

NSString *urString = @"\"YouTube - VID 0001‏\"";
NSString *formattedString = [urString stringByReplacingOccurrencesOfString:@"\"" withString:@""];
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文