如何删除杂散的â\302â在 C++ ?

发布于 2024-12-21 20:58:12 字数 65 浏览 2 评论 0原文

如何在 C++ 中删除杂散“302”?

我不想通过点击删除按钮将它们一一删除。

谢谢

How to remove stray â\302â in C++ ?

I do not want to remove them one by one by hitting delet button.

thanks

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

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

发布评论

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

评论(2

萌吟 2024-12-28 20:58:12

你不知道。您可以使用 libiconv 或 ICU 之类的工具将 UTF-8 文本 转换为您想要的字符集可以理解。

You don't. You use something such as libiconv or ICU to convert the UTF-8 text to a charset you can understand.

聚集的泪 2024-12-28 20:58:12

由于OP目前的帖子被标记为 我假设 OP 正在寻找一种方法来删除此编辑器中的所有字符(八进制值为 3028)。


:%s/\%o302//g

上面的命令将在整个文件中搜索八进制值 \302 并用空字符串替换每个实例。

Since the post by OP currently is tagged with I assume that OP is looking for a way to delete all characters (with a octal value of 3028) from within this editor.


:%s/\%o302//g

The above command will search the whole file for the octal value \302 and replace every instance with an empty string.

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