不太懂,因为这个do文件虽然有中文字符,但是也是我之前用同样的stata软件写的,是stata 16的版本,理论上应该不会识别不了中文啊
谁能来帮帮我,试了论坛上的代码,也说粘贴到txt文件再复制回来,都不管用。。
. unicode analyze *.do
(Directory ./bak.stunicode created; please do not delete)
File summary (before starting):
1 file(s) specified
1 file(s) to be examined ...
File test.do (text file)
26 lines in file
21 lines ASCII
5 lines UTF-8
File does not need translation, except ...
The file appears to be UTF-8 already. Sometimes files that still need translating can look like UTF-8. See lines 2, 8, 11, 12, and 26. A total
of 5 lines out of 26 appear to be UTF8.
---------------------------------------------------------------------------------------------------------------------------------------------------
File summary:
all files okay
.
. unicode encoding set gbk
(default encoding now gbk)
.
. unicode translate *.do
(using gbk encoding)
File summary (before starting):
1 file(s) specified
1 file(s) already known to be UTF8 in previous runs
0 file(s) to be examined ...
(nothing to do)