" in the content


Subject: " in the content
From: BROUCHOUD Henri FTRD/DIH/LAN (henri.brouchoud@rd.francetelecom.com)
Date: Tue Jul 23 2002 - 15:33:40 MET DST


Hi,

In Jade 2.5, I observe a strange interpretation of " in the content of a message :
If one agent send a message built with msg.setContent("ping");
the following is received

(QUERY-REF
   :sender ...
   :receiver ...
   :content ping
)

if the message is built with msg.setContent("\"ping\""); the following is received :
(QUERY-REF
  :sender ...
   :receiver ...
   :content "ping""
)

note the double " at the end of the content. Is it a known bug or am I doing something wrong ?

By the way is it possible to have such a content :content ping ?
From the FIPA ACL Message Representation in String Specification (http://www.fipa.org/specs/fipa00070/XC00070G.html) the content slot
is defined with :

MessageSlot = ...
              | ":content" String
              ...

String = StringLiteral | ByteLengthEncodedString.
StringLiteral = "\"" ([ ~ "\"" ] | "\\\"")* "\"".

So it seems that embracing " are mandatory. Am I wrong ?
 
Henri



This archive was generated by hypermail 2a22 : Tue Jul 23 2002 - 15:32:25 MET DST