From 53a0a5473f45d37027af9663638adbf56667e4ca Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Tue, 12 Nov 2024 22:26:02 -0500 Subject: Hopefully no leaks --- scripts/moonrune-charset-utf8 | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 scripts/moonrune-charset-utf8 (limited to 'scripts/moonrune-charset-utf8') 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 -- cgit v1.2.3-101-g0448