Would you please provide a method in &#39;org.drools.io.ResourceFactory&#39; like this: <br><br>public static Resource newReaderResource(InputStream stream, String encoding);<br><br>then I can use this method to load drl files as a stream while explicitly specify its ecoding? <br>
<br>And in line: 287 of class &#39;org.drools.compiler.DrlParser&#39;: <br><br>lexer = new DRLLexer( new ANTLRInputStream( is ) );<br><br>no encoding specified as well. The ANTLRInputStream has constructors which allows you to specify the encoding, otherwise it would figure out the encoding according to the environment, which is unpredictable some times.<br>
<br>I&#39;m using drools 5.3.0, the newest version. Thosse problems exists for quite a while during previous versions. I&#39;m fainting to see they are almost there after upgraded to the new version.<br clear="all"><br>-- <br>
Regards.<br>Miles. Wen<br><br>