diff options
| author | 2024-11-12 22:26:02 -0500 | |
|---|---|---|
| committer | 2024-11-12 22:36:49 -0500 | |
| commit | 53a0a5473f45d37027af9663638adbf56667e4ca (patch) | |
| tree | 05c6c39678a9005f95c00e0fdf31193657bd4d3d /scripts/moonrune-charset-utf8 | |
| download | dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.tar.gz dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.tar.bz2 dotfiles-53a0a5473f45d37027af9663638adbf56667e4ca.zip | |
Hopefully no leaks
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 |