1.把源文件(如Excel表)所在的文件路径都改成非中文字符,导入了再跑一遍stata;2.直接把源文件(如...
导入了再跑一遍stata;2.直接把源文件(如Excel)拖到桌面,导入了再跑一遍stata。
将原.dta 数据保存至了backup files 转码后UTF-8 此程序只能转一遍,只能转一遍,只能转一遍!否则原数据将丢失,且数据重新变回乱码。 转换后若还存在乱码(一般只有少数),则这些乱码就是所谓的利用官方命令(unicode translate *)无法转换的字符,需要加invalid选项才能继续运行命令,但这样将造成数据被更改和丢失。而在...
* Unicode all files (.do, .ado, .dta, .hlp, etc.) in CWD and files in sub-directories . ua: unicode encoding set gb18030 . ua: unicode translate * 多谢你的提示。根据你的转码的启示,我在stata中研究了一下Unicode命令可以很好的解决问题。 具体的步骤如下:(1)打开stata15.0,不要打开任何数据...
unicode translate *.do/*.dta /... [, invalid[(escape|mark|ignore)] transutf8 nodata ] 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 多个文件夹转换 通过设定文件夹路径确实可以较为简便的对文件夹内的所有文件进行转码,但是此命令不能批量解决多个文件夹乱码问题;如果升级St...
3、文件进行转码。Translate or retranslate files unicode translate filespec [, invalid[(escape|mark|ignore)] transutf8 nodata ] unicode retranslate filespec [, invalid[(escape|mark|ignore)] transutf8 replace nodata ] Restore backups of translated files ...
stata输出中显示了需要翻译的变量和标签以及字符串变量。 接着 . unicode encoding set gb18030 设置为国标gb编码,再进行翻译。 翻译 · unicode translate CLDS2016household_(STATA)_170908.dta 结果会显示文件是否编码翻译成功,再次打开就OK了。 【方法转载自】 2016 陈强, 山东大学经济学院...
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选项,那么所有标签仍然是...
the invalid option File 000004.dta still needs translation File summary: all files not transl...
“StataCorpEnhancements”meansStataSpecialFilesorenhancementstoStataSpecialFilesinwhichthecopyrightisownedby StataCorpordistributedbyStataCorpfromtimetotime.StataCorpEnhancementsarenotdefinedasSoftware. “StataCorpWebsite”means. “StataSpecialFiles”arefileswithfileextensionsof.ado,.class,.dlg,.idlg,.hlp.,.ihl...