String escape sequence in a belief

Help
holgerhsw
2012-02-02
2013-06-12
  • holgerhsw
    holgerhsw
    2012-02-02

    Hi everyone,

    I am just in doubt about my basic programming skills…. Having a String like "abc\\rst" I do expect to get abc\rst e.g on the console, isn't it?

    However, if I store that string in a belief, the debugger tells me that the facts has the value "abc\st"

    <belief name="test" class="String">
       <fact>"abc\\rst"</fact>
    </belief>

    I am confused a little bit and glad about any hint to find my fault!

    Greetings,
    Holger

     
  • Hi Holger,

    your programming skills are fine. There was a bug in our parser.
    I have fixed it and it will be available in the next nightly build.

    Thanks for the indication and kind regards,
    Alex