uall

October 31, 2018 · View on GitHub

  • unicode all files in current working directory (CWD) and files in all subdirectories of CWD recursively. For Stata users updated from version 13 to version 14 or higher.
  • (中文-Chinese) 适用于 stata15 用户。可以一次性对当前工作路径以及所有子文件夹中的文件进行转码(unicode),以保证中文字符可以正常显示。

安装 (install package)

  • 方法1: 下载 uall.adouall.sthlp,放置于 D:\stata15\ado\base\uD:\stata15\ado\plus\u 文件夹中。
  • 方法2:
    • 输入 ssc install github, replace 下载 github 命令 (若已安装,请忽略此步骤);
    • 输入 github install arlionn/uall, replace 下载 uall 命令。

使用

  • 在 Stata 命令窗口中输入 help uall,查看命令介绍和 Stata 范例。参照范例使用即可。

Examples

  * Change current working directory (CWD), 待转换文件路径
    . cd D:\stata15\ado\personal\mypaper

  * For Chinese users: (对该文件夹下的所有文件进行转码)
    . uall

  * For Japnese users:
    . uall ibm-943_P15A-2003
                
  * For Korean users:
    . uall ibm-970_P110_P110-2006_U2

Author

Acknowledgements

I would like to thank Dr. Hua Peng at StataCorp LP for helpful suggestions.
Codes from rcd by Nikos Askitas and Dan Blanchette have been incorporated.