[jboss-jira] [JBoss JIRA] (JBRULES-3341) Specify .drl file encoding when creating resource
Miles Wen (Created) (JIRA)
jira-events at lists.jboss.org
Wed Jan 11 02:18:09 EST 2012
Specify .drl file encoding when creating resource
-------------------------------------------------
Key: JBRULES-3341
URL: https://issues.jboss.org/browse/JBRULES-3341
Project: Drools
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.3.0.Final
Environment: drools 5.3.0 final, ubuntu linux 11.04, amd64, sun jdk 1.6u27
Reporter: Miles Wen
Assignee: Mark Proctor
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list