楼主: qq639459
86488 121

[学习心得] 统一回复解决Stata14中导入do文档时中文出现乱码的问题_stata14乱码   [推广有奖]

91
iceriver1031 发表于 2018-10-24 12:22:31
我的妈呀太感谢了!!!

92
AISOMI 发表于 2018-11-3 19:27:37
. unicode translate 2000-10.csv
  (using gb18030 encoding)

  File summary (before starting):
        1  file(s) specified
        1  file(s) to be examined ...

  File 2000-10.csv (text file)
file C:\Users\8\AppData\Local\Temp\ST_00000002.tmp already exists
                 fopen():   602  file already exists
      examine_txt_file():     -  function returned error
          examine_file():     -  function returned error
      do_examine_files():     -  function returned error
            unicode_do():     -  function returned error
     unicode_translate():     -  function returned error
                 <istmt>:     -  function returned error
r(602);

感谢大神分享 请问这种情况要如何处理呢

93
Jameisters 发表于 2018-11-21 22:03:23
感谢!

94
qq639459 在职认证  发表于 2018-11-22 09:15:05
AISOMI 发表于 2018-11-3 19:27
. unicode translate 2000-10.csv
  (using gb18030 encoding)
我这个方法是将Stata就版本的do file和dta转换成新版本可以识别的,不适用于将excel和csv导入stata哦

95
qq639459 在职认证  发表于 2018-11-22 09:15:09
AISOMI 发表于 2018-11-3 19:27
. unicode translate 2000-10.csv
  (using gb18030 encoding)
我这个方法是将Stata就版本的do file和dta转换成新版本可以识别的,不适用于将excel和csv导入stata哦

96
qq639459 在职认证  发表于 2018-11-22 09:15:24
AISOMI 发表于 2018-11-3 19:27
. unicode translate 2000-10.csv
  (using gb18030 encoding)
我这个方法是将Stata就版本的do file和dta转换成新版本可以识别的,不适用于将excel和csv导入stata哦

97
mruoy 发表于 2018-12-1 21:21:04
前两条代码运行成功,但第三条代码运行错误,显示错误602怎么办?
. unicode retranslate "程序.do", transutf8
  (using gb18030 encoding)

  File summary (before starting):
        1  file(s) specified
        1  file(s) to be examined ...

  File 程序.do (text file)
file C:\Users\HNUJUAN\AppData\Local\Temp\ST_00000002.tmp already exists
                 fopen():   602  file already exists
      examine_txt_file():     -  function returned error
          examine_file():     -  function returned error
      do_examine_files():     -  function returned error
            unicode_do():     -  function returned error
     unicode_translate():     -  function returned error
                 <istmt>:     -  function returned error

98
卫星天线09 发表于 2018-12-14 19:47:23
怀瑾闲人 发表于 2016-12-4 09:40
楼主你好,我用CFPS数据库translate出来的还是乱码,形如2012%D2R%T4%678%3R%3%RPFH,请问楼主知道如何解决 ...
请问后来怎么解决的?

99
卫星天线09 发表于 2018-12-14 20:00:26
encoding not set
    Before using unicode translate, you must set the character encoding you believe is being
    used, such as latin1.  There are lots of encodings.  You set the encoding using the
    unicode encoding set command.  You can set and reset the encoding and repeat the unicode
    translate command to see which works best.
r(198);
请问这种怎么办?

100
yishiweijing 发表于 2018-12-19 16:50:05
AISOMI 发表于 2018-11-3 19:27
. unicode translate 2000-10.csv
  (using gb18030 encoding)
我也遇到这种问题,我是重新安装了一下,然后就可以了

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-31 02:40