-
Feature Request
-
Resolution: Duplicate
-
Major
-
5.3.0.Final
Would you please provide a method in 'org.drools.io.ResourceFactory' like this:
public static Resource newReaderResource(InputStream stream, String encoding);
then I can use this method to load drl files as a stream while explicitly specify its ecoding?
And in line: 287 of class 'org.drools.compiler.DrlParser':
lexer = new DRLLexer( new ANTLRInputStream( is ) );
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.
- duplicates
-
JBRULES-2853 ResourceFactory.newClassPathResource(drlPath) behaves differently on different platforms (linux, windows): it parses the file with different encodings
- Resolved