diff options
Diffstat (limited to 'scripts/moonrune-charset-utf8')
| -rwxr-xr-x | scripts/moonrune-charset-utf8 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/moonrune-charset-utf8 b/scripts/moonrune-charset-utf8 new file mode 100755 index 0000000..d3e8343 --- /dev/null +++ b/scripts/moonrune-charset-utf8 @@ -0,0 +1,6 @@ +#! /usr/bin/env bash +if [[ "$1" == "china"]]; then + iconv -f GBK -t UTF8 "$2" -o "$3" +elif [[ "$1" == "jp"]]; then + iconv -f SHIFT-JIS -t UTF8 "$2" -o "$3" +fi |