[rules-users] Guvnor encoding issue

Wolfgang Laun wolfgang.laun at gmail.com
Sat Sep 22 03:46:39 EDT 2012


Not knowing what locale you have where, and what Drools and especially
Guvnor are doing due to what (where's that documented?), your best
bet is to use "...UN A\u00d1O)" in the rule text.

-W

On 21/09/2012, Fernando Penagos <yupegom at gmail.com> 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
>



More information about the rules-users mailing list