慎用UltraEdit32打开UTF8格式文件
UTF16的BOM头是FF FE,UTF8的BOM头是EF BB BF。但是用UltraEdit32打开UTF8文件,切换到HEX模式,会发现BOM头变成了FF FE。而且在打开log4j的UTF8编码的日志文件时,中文也会显示为乱码。为了避免烦恼,决定以后不用UltraEdit32打开UTF8文件了。
使用Notepad++打开则无任何问题。
It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity. We had everything before us, we had nothing before us.
这是最好的时代,这是最坏的时代;这是智慧的年代,这是愚蠢的年代;这是信仰的时期,这是怀疑的时期;我们的前途拥有一切,我们的前途一无所有。
这是最好的时代,这是最坏的时代;这是智慧的年代,这是愚蠢的年代;这是信仰的时期,这是怀疑的时期;我们的前途拥有一切,我们的前途一无所有。