[rules-users] Guvnor encoding issue

Fernando Penagos yupegom at gmail.com
Fri Sep 21 16:23:22 EDT 2012


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120921/dfdf0bd3/attachment.html 


More information about the rules-users mailing list