How are you loading your rules?
When loading in code you should be able to specify the correct encoding.
When using Spring, you may be struck by JBRULES-3633. You could vote for the issue or use the patch contained in it.

Kind regards,
Joachim

On 21-09-12 22:23, Fernando Penagos wrote:
Hi everyone, 

I'm working whit Drools 5.4.0 final and the last version of Guvnor (5.40 final). I'm using eclipse as IDE. 

The problem is whit this kind of actions that i have to use in my rules:

$asegurado.agregarExamenDeAsegurabilidad( "TRANSCRIPCION COPIA DEL RESULTADO DE LA ULTIMA MAMOGRAFIA (NO MAYOR A UN AÑO)" );

In this action the result is an insertion on an Array but if you observe there is a 'Ñ' and when i run the test i get something like:

TRANSCRIPCION COPIA DEL RESULTADO DE LA ULTIMA CITOLOGIA (NO MAYOR A UN AÑO)

So the rule is never true. 

I've tried whit some advises in the forums like insert "-Dfile.encoding=ISO-8859-1" (i try with UTF-8 and Cp1252 too) on the arguments of the server i'm using to deploy guvnor but the problem remains plus other like try to save the file with an specific encode.

I already try to adding and "encoding" parameter to the "kagent" like this:

String encoding = "UTF-8";
kagent.applyChangeSet( ResourceFactory.newClassPathResource( "changeset.xml"),encoding);

But nothing seems to work. What am I doing wrong??

I hope you can help me and thank you all.


--
Yuliban Fernando Penagos Gómez
Ingeniería de Sistemas
Universidad Distrital Francisco José de Caldas



_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users