summaryrefslogtreecommitdiff
path: root/scripts/desktop/moonrune-charset-utf8
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/desktop/moonrune-charset-utf8')
-rwxr-xr-xscripts/desktop/moonrune-charset-utf86
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/desktop/moonrune-charset-utf8 b/scripts/desktop/moonrune-charset-utf8
new file mode 100755
index 0000000..d3e8343
--- /dev/null
+++ b/scripts/desktop/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