# encodeToGb2312 **Repository Path**: leaflxd/encodeToGb2312 ## Basic Information - **Project Name**: encodeToGb2312 - **Description**: encode string to gb2312 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2020-05-28 - **Last Updated**: 2023-01-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README encodeToGb2312 ============== 转码 GB2312 ####浏览器环境调用 ``

var result = encodeToGb2312("字符串转GB2312");
result:  D7D6B7FBB4AED7AA474232333132
####nodejs环境 `var gb2312 = require("encode-gb2312");`

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