Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-3341

Specify .drl file encoding when creating resource

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              pf_miles Miles Wen (Inactive)
              Archiver:
              rhn-support-ceverson Clark Everson

              Dates

                Created:
                Updated:
                Resolved:
                Archived:

                PagerDuty