如何在stata14中用unicode命令转换不可识别的变量标签
发布网友
发布时间:2022-04-22 15:29
我来回答
共1个回答
热心网友
时间:2023-10-03 01:52
本帖最后由 adamesky 于 2015-7-30 14:19 编辑
我在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选项,那么所有标签仍然是怪异的符号。