如何将文本转换为文本文件中的UTF-8编码
当我使用文本编辑器查看实际内容时,我会看到
baliÄ<8d>ky 0 b a l i ch k i
,当我使用CAT查看它时,我会看到
baličky 0 b a l i ch k i
该如何做到这一点,它实际上也是文本编辑器中的Baličky
?
我尝试了许多命令,例如iconv -f utf-8 -t iso-8859-15
,iconv -f iso-8859-15 -t utf-8
, recode utf8..l9
。
他们都没有工作。它仍然是baliä&lt; 8d&gt; ky
而不是baličky
。这是一个捷克语。如果我执行一个简单的sed命令(/ä&lt; 8d&gt;/č),它有效,但是我还有很多其他类似的角色,而手动工作基本上确实是平凡的。
有什么建议吗?
When I use a text editor to see the actual content, I see
baliÄ<8d>ky 0 b a l i ch k i
and when I use cat to see it, I see
baličky 0 b a l i ch k i
How can I make it so, it is actually baličky
in the text editor as well?
I've tried numerous commands such as iconv -f UTF-8 -t ISO-8859-15
, iconv -f ISO-8859-15 -t UTF-8
, recode utf8..l9
.
None of them works. It's still baliÄ<8d>ky
instead of baličky
. This is a Czech word. If I do a simple sed command (/Ä<8d>/č), it works but I have so many other characters like this and manual work is basically really mundane at this point.
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论