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..

Problem with define array use utf8
 
 

Hello,

I recently started learning RiveScript to program a chatbot with rivescript and have some problem.
when i define array :

! array colors   = white black orange red blue green yellow cyan fuchsia

+ what color is my (@colors) *
- Your <star2> is <star1>, silly!
- Do I look dumb to you? It’s <star1>!

when i using without -utf8 option it working,
but when i using -utf8 option bot ref: “Bot> ERR: No Reply Matched”.

someone can help me?

sorry, my English is bad

 

 
  [ # 1 ]

Which programming language are you using? I can’t reproduce the problem in the Perl, Python or JavaScript versions, but I suspect it might be related to punctuation characters not being removed from the user’s message.

 

 
  [ # 2 ]

In case you were using Go, I was able to reproduce the bug in that version (literal @ signs can be kept in a trigger in UTF-8 mode and the Go version was replacing all @ symbols instead of only the ones written like “\@”).

So if you’re using that version, get the latest code from github which should fix it.

 

 
  [ # 3 ]

thanks for you reply, i’m using RiveScript Interpreter and here is detail:

RiveScript Interpreter (Golang)—Interactive Mode
—————————————————————————-
RiveScript version: 0.0.1
      Reply root: /home/p4fun/rivescript/

You are now chatting with the RiveScript bot. Type a message
and press Return to send it. When finished, type ‘/quit’ to
exit the program. Type ‘/help’ for other options.

Sorry, but i don’t know how to fix it.

Image Attachments
Screenshot_from_2016-02-17_15-01-13.png
 

 
  [ # 4 ]

Try with the latest version from https://github.com/aichaos/rivescript-go—the Go version is still in early beta so it’s still v0.0.1 but I fixed this bug with it yesterday. smile

 

 
  [ # 5 ]

great, It fixed, thank for you help.

 

 
  login or register to react
‹‹ RiveScript in Java      rivescript minus node ››