Greasy Fork is available in English.

GB2312UTF8

utf-8 and gb2312 converter

此腳本不應該直接安裝,它是一個供其他腳本使用的函式庫。欲使用本函式庫,請在腳本 metadata 寫上: // @require https://update.greasyfork.org/scripts/450973/1091107/GB2312UTF8.js

作者
Theron
版本
1.0
建立日期
2022-09-08
更新日期
2022-09-08
授權條款
copyright http://freecode-freecode.blogspot.com/2008/11/how-to-gbkgb2312-and-utf-8-encoding.html, mod by https://gist.github.com/19317362/a1d8e40bfb6587463d4d

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