Good Evening, I Don'T Know I

Good evening, I don't know if it's possible,

I use a SARAH framework with plugins with a Dictionnary plugin that parse my answer. It works perfectly and I get my answer. I created a script that I named dico that I would like to launch with an HTTP request and a ControlCommand.

$VoiceStart = "<prosody pitch='+10%' rate='-5%' range='+5%' contour='(0%,+30Hz) (10%,-2st) (40%,+10Hz)'> "
$VoiceEnd = "</prosody>"
$search = "voiture"
$SynbotTextResponse = HTTPget(""+$search)
SayWait($VoiceStart +$SynbotTextResponse+ $VoiceEnd)

But here is my question:

You will understand, instead of voiture I would like to put the object of my research $search = "voiture""dico""mysearch";)

Is it possible?

Another thing and it's important, I always have a problem with the accents in my answers. Is an update planned?

[url=][size=2][font=Verdana, Arial, Helvetica, sans-serif]see here[/font][/size]



Upgrade to ARC Pro

Become a Synthiam ARC Pro subscriber to unleash the power of easy and powerful robot programming


I found and it was easy as pie. I forgot to mention I use Synbot.

<Item>DICO *</Item>
<x:EZcmd>HTTPget("<Match />")</x:EZcmd>

Now I will be able to parse all my sites that I wish (dico, wikipedia, weather ...) with my framework.

But I have always problem with the accents, it's impossible to use this (for the time being?).

#2   — Edited

I had already discussed the problem here

Here I have my accents in my answer.

User-inserted image

mécanisme automatique capable d'exécuter certaines tâches selon un programme fixe ou modifiable

But in synbot the accents are not present and the answer is unusable.

User-inserted image

mcanisme automatique capable d'excuter certaines tches selon un programme fixe ou modifiable

@DJ [/b]I specify that the site is in UTF-8,  my plugin gives the answer in UTF-8 with all the accents.

request({ 'uri' : url ,'htm':{'Accept-Charset': 'UTF-8'}, }, function (err, response, body){

I did the tests on 2 PCs and others ARC skill plugins (pandorabot, synbot,...)


@Dj Well, I found a solution by doing a regex. It's not really beautiful but it works, that's all that matters.

match = match.replace(/[éèê]/g,"&#233;");