https://github.com/yaqinking/scripts
一些使用到的脚本
https://github.com/yaqinking/scripts
Last synced: 9 months ago
JSON representation
一些使用到的脚本
- Host: GitHub
- URL: https://github.com/yaqinking/scripts
- Owner: yaqinking
- Created: 2016-11-24T09:18:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-24T04:13:45.000Z (about 9 years ago)
- Last Synced: 2025-07-04T03:02:41.428Z (12 months ago)
- Language: Perl
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 一些脚本工具
自己整理修改之后使用的一些脚本。
## perl
`gb2312-to-utf8.pl` 转换 GB2312 编码的文件到 UTF-8
`sjis-to-utf8.pl` 转换 Shift-JIS 编码的文件到 UTF-8
`utf16le-to-utf8.pl` 转换 UTF-16LE (UCS2) 编码的文件到 UTF-8
上面的是根据 jin1016 的这个 [gist](https://gist.github.com/jin1016/7958752) 修改来的。
## Python
`utf8_to_utf16le.py` 转换 UTF-8 编码的文件到 UTF-16LE
## bat
**因为需要手动再命令提示符里敲不推荐使用,用 Python script 转换吧**
~~[convert-utf8-utf16le.bat](https://gist.github.com/yaqinking/3f1c8eaacb3898fadd9e0b4c1e03f801) 转换 UTF-8 编码的文件到 UTF16-LE [来源](https://superuser.com/questions/69091/batch-change-encoding-ascii-files-from-utf-8-to-iso-8859-1)~~