AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Special characters in data table possible?
 
 

I have a fact table that stores a few facts with parentheses () in the object.


table: ~service_pack_fixes(^qualifiedVersion ^fix)
createfact(^qualifiedVersion fix ^fix)

DATA:
1.1 This_looks_ok.
1.1 “This_has_parentheses_around_it(start_and_end_of_line).”

When I go to print out the facts, I get quote marks around the output:

Ava:  Here are the fixes:
“This has parentheses around it(start and end of line).”
This looks ok.

I have tried a few different things.  I removed the quotes in he Data table, but then the fact ends at the (. I also had to remove the period at the end to get it to process the data table.

Ava:  Here are the fixes:
This has parentheses around it
This looks ok.

Here is the test I’m using:

?: PACK_TEST (What fixes) Here are the fixes: \n
query(direct_sv 1.1 fix ?)
_9 = length(@0)
loop (_9) {
first(@0object) \n
}

table: ~service_pack_fixes(^qualifiedVersion ^fix)
createfact(^qualifiedVersion fix ^fix)

DATA:
1.1 This_looks_ok.
1.1 “This_has_parentheses_around_it(start_and_end_of_line).”

 

 

 
  [ # 1 ]

special character escape with \


\( 
\]

etc

 

 
  [ # 2 ]

I tried several combinations with the \, still unable to get it to work.

DATA:
1.1 This_looks_ok.
1.1 This_has_parentheses_around_it_\(start_and_end_of\)_line

gives me a build error:

  Bad table 1.1 This_has_parentheses_around_it_\(start_and_end_of\)_line in table tbl:~service_pack_fixes, want 2 macroArgumentList and have 4

 

 
  [ # 3 ]

Have you tried it quoted, without underscores, and escaped, such as this?

“This has parentheses around it \(start and end of\) line”

Just a thought. smile

 

 
  [ # 4 ]

No luck.  I tried every combination I could think of, here are a few:


With:

DATA:
1.1 “This looks ok.”
1.1 “This has parentheses around it (start and end of) line”

Result:
Ava:  Here are the fixes:
“This has parentheses around it (start and end of) line”
This looks ok.


With:

DATA:
1.1 “This looks ok.”
1.1 “This has parentheses around it \(start and end of\) line”


Result:
Ava:  Here are the fixes:
“This has parentheses around it \(start and end of\) line”
This looks ok.

With:

DATA:
1.1 “This looks ok.”
1.1 “This_has_parentheses_around_it_\(start_and_end_of\)_line”

Result:
Ava:  Here are the fixes:
“This has parentheses around it \(start and end of\) line”
This looks ok.

With:

DATA:
1.1 “This looks ok.”
1.1 “This_has_parentheses_around_it_ \( start_and_end_of \) _line”

Result:
Ava:  Here are the fixes:
“This has parentheses around it \( start and end of \) line”
This looks ok.

With:
DATA:
1.1 “This looks ok.”
1.1 “This has parentheses around it \( start and end of \) line”

Result:
Ava:  Here are the fixes:
“This has parentheses around it \( start and end of \) line”
This looks ok.

With:

DATA:
1.1 “This looks ok.”
1.1 This_has_parentheses_around_it_\(_start_and_end_of_\)_line

I get a build error:    Bad table 1.1 This_has_parentheses_around_it_\(_start_and_end_of_\)_line in table tbl:~service_pack_fixes, want 2 macroArgumentList and have 4

With:
DATA:
1.1 “This looks ok.”
1.1 This_has_parentheses_around_it\(start_and_end_of\)_line

I get a build error:    Bad table 1.1 This_has_parentheses_around_it\(start_and_end_of\)_line in table tbl:~service_pack_fixes, want 2 macroArgumentList and have 4


I evern tried a few tings like this:

DATA:
1.1 “This looks ok.”
1.1 This_has_parentheses_around_it” \(start_and_end_of\) “_line

These type of things had major build errors (didn’t expect it to work, but wanted to try)

 

 
  login or register to react