# string.encoding 库模块帮助文档

## string.encoding 成员列表 <a id="string.encoding" href="#string.encoding">&#x23;</a>

### string.encoding.getCharset(codepage) <a id="string.encoding.getCharset" href="#string.encoding.getCharset">&#x23;</a>
内码转换为字符集  
参数为数值表示的内码页,返回值为文本  
省略参数则使用默认内码页

### string.encoding.getCodepage(charset) <a id="string.encoding.getCodepage" href="#string.encoding.getCodepage">&#x23;</a>
字符集转换为内码  
参数为文本,返回数值
