utf-8 and gb2312 converter
此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.cn-greasyfork.org/scripts/450973/1091107/GB2312UTF8.js
How to GBK(GB2312) and UTF-8 encoding conversion between in JavaScript
following js code show to how to convert text between Simplified Chinese GB 2312 text strings into UTF8 using JavaScript.
Posted in http://freecode-freecode.blogspot.com/2008/11/how-to-gbkgb2312-and-utf-8-encoding.html, mod by https://gist.github.com/19317362/a1d8e40bfb6587463d4d