aardio中检测文本编码
编辑时间:2020-11-19 作者:金满斗 浏览量:2146 来源:原创

也没有特意留意这个,昨天群里看到就转载保存下。

import console; 
//自动检测文本编码示例:
import com.interface.IMultiLanguage2;
var multiLanguage = com.interface.IMultiLanguage2.Create();

var str = string.load("D:\1.txt");
console.log(str);


var codepage = multiLanguage.detectInputCodepageEx(str);



console.log(codepage);
console.pause(true);


来说两句吧