从记事本中检索保存为ANSI文本文件的unicode文本 [英] retrieving unicode text from notepad which is saved as ANSI text file

查看:260
本文介绍了从记事本中检索保存为ANSI文本文件的unicode文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我在记事本文件中写了一些文本,该文件中有很多Unicode字符,并将文件保存为ANSI。记事本给了我一些警告,我单击确定,没有完全阅读它和关闭记事本。

Yesterday I wrote some text in a notepad file which was full of Unicode characters and saved the file as ANSI. Notepad gave me some warning, which i clicked OK without reading it fully and closed notepad.

今天,当我再次打开相同的文本在记事本,我看到记事本充满???标志。我现在明白这是因为我将Unicode数据保存为ANSI文本。有没有办法检索这个文本?可能使用一些十六进制编辑器等等?

Today when I again opened the same text in notepad, I am seeing notepad full of ??? signs. I now understand that this happened because I saved Unicode data as ANSI text. Is there a way to retrieve this text back? May be using some hex-editor or so?

推荐答案

否。某些字符无法编码在某些编码中。例如,风不能在ISO-8859或任何其他单字节编码中进行编码。每个ANSI编码也只能编码所有可能字符的某个子集。根本不可能存储未在该编码中的特定ANSI编码中定义的字符,它们根本不在那里定义。

No. Certain characters cannot be encoded in certain encodings. "風" cannot be encoded at all in ISO-8859 or any other single-byte encoding, for example. Each ANSI encoding also can only encode a certain subset of all possible characters. It is simply not possible to store characters not defined in a particular ANSI encoding in that encoding, they're simply not defined there.

所以,他们走了。你最好拿出一个备份。

So, they're gone. You better pull out a backup.

这篇关于从记事本中检索保存为ANSI文本文件的unicode文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆