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/oN8m 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录