函数:hlfs.codeConvert 转换文本格式(仅支持 iOS)

函数分类:ts.so

函数名称:转换文本格式

函数功能:转换文本格式

函数方法

hlfs.codeConvert(srcPath,dstPath,mode)

返回值:无

参数 类型 必填 说明
srcPath string 原文件路径
dstPath string 保存后文件路径
mode string 文件格式:mode = 1,GB18030;mode = 2,GB2312;mode = 3,UTF-16

函数示例

local ts = require("ts")
ts.hlfs.codeConvert(userPath().."/res/test.txt",userPath().."/res/test3.txt",1)--不支持相对路径
Copyright 北京帮你玩科技有限公司 2023 all right reserved,powered by Gitbook该文章修订时间: 2024-03-06 17:50:18

results matching ""

    No results matching ""