encode-to-gb2312

encode string to gb2312


Keywords
gb2312
License
MIT
Install
bower install encode-to-gb2312

Documentation

encodeToGb2312

转码 GB2312

####浏览器环境调用 <script type="text/javascript" src="encodeToGb2312.js"></script>


var result = encodeToGb2312("字符串转GB2312");
result:  D7D6B7FBB4AED7AA474232333132

####nodejs环境

var gb2312 = require("encode-gb2312");


var result = gb2312.encodeToGb2312("字符串转GB2312");
result:  D7D6B7FBB4AED7AA474232333132