KieHelperaddContent方法如何指定字符集格式
KieHelper.addContent()方法默认使用UTF-8字符集格式,如果需要指定其他字符集格式,可以使用KieHelper.addContent(String content, String encoding)方法,其中encoding参数可以指定字符集格式。例如:
kieHelper.addContent(drlContent, "ISO-8859-1");
此代码将使用ISO-8859-1字符集格式添加drlContent内容。
原文地址: https://www.cveoy.top/t/topic/hllV 著作权归作者所有。请勿转载和采集!