<div class="Section1"><font face="Arial" size="2"><span style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">
<p>Hi everyone,</p>
<p>I am currently experimentating troubles compiling a DRL file with a \" character in it.<br>I am using Drools libraries 3.0.4.<br>I used a XLS decision table that, once compiled, gave me a DRL. The following lines are extracted from it.
</p>
<p>#From row number: 14</p>
<p>rule &quot;Exemple 1 2006 10 10_14&quot;</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; salience 65522<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; when<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ctx:MyObject()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval(Ctx.GetPrp(&quot;TEST&quot;).getValue().equals(&quot;GER&quot;))<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ctx.SetPrp(&quot;TRUC&quot;).setValue(&quot;test char \&quot; test&quot;);
<br>end<br>&nbsp;<br>#From row number: 15<br>&nbsp;<br>The problem is that when compiled, an error is generated </p>
<p>Unknown:0-1 mismatched token: [@0,0,0='&lt;no text&gt;',&lt;-1&gt;,0:-1]; expecting type 'end'</p>
<p>If I modify the decision table to put<br>&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Ctx.SetPrp(&quot;TRUC&quot;).setValue(&quot;test char &quot; test&quot;); </p>
<p>The result is the same </p>
<p>Unknown:0-1 mismatched token: [@0,0,0='&lt;no text&gt;',&lt;-1&gt;,0:-1]; expecting type 'end'</p>
<p><br>So it means that \" is not understood, however, if I put \z, I get the following error: </p>
<p>Rule compilation error Invalid escape sequence (valid ones are \b \t \n \f \r \&quot; \&#39; \\) </p>
<p>Where it is written that \" should be understood. <br>Any idea? </p>
<p>Greetings, </p>
<p>Cédric D'INCA<br></p></span></font></div>