C/C++文本文件件编码格式

  判断一文本文件编码格式。打开.txt文件,文件-〉另存为-〉编码-〉ASCII,Unicode,Unicode big endian,UTF-8测试 根据文件头判断文件多是上面的几种编码格式编码 WineHxe测试的文件头code unsigned char uniTxt[] = {0xFF, 0xFE}; // Unicode file header unsigned char endian
相关文章
相关标签/搜索