如何在stata14中用unicode命令转换不可识别的变量标签

如题所述

我在STATA14中打开一个数据文件,结果是乱码。然后我用unicode analyze 对其进行分析,结果说该文件需要进行 unicode translate。于是用该命令对其进行转换,结果出现如下结果:
2 variable labels okay, ASCII
0 variable labels okay, already UTF-8
239 variable labels cannot be translated
all str# variables okay, ASCII
--------------------------------------------------------------------------------------
File not translated because it contains unconvertable characters;
you might need to specify a different encoding, but more likely you need to run
unicode translate with the invalid option

File 000004.dta still needs translation

File summary:
all files not translated because they contain unconvertable characters;
you might need to specify a different encoding, but more likely you need to run
unicode translate with the invalid option
结果是说所有文件都没被转换,原因是包含不可转换的字母。如果添加invalid选项,那么所有标签仍然是怪异的符号。
温馨提示:答案为网友推荐,仅供参考
相似回答