France
Asked — Edited

Http Server Question With É

Hello, after several tests and with 2 PCs (Windows 10, 32 bits and 64 bits in French), I have this bug with accents. I also tried with PandoraBot and SynBot. é is replaced by ? The Http server page doesn't recognize them. If I say "Quelle est ta date de naissance" it works. But I have this answer "Je suis n? le 7 d?cembre 2001" If I say "Quand es tu né" I don't have an answer. On the other hand it works if I write directly in Pandorabot and Synbot. An idea to correct that? I know that the Http server page (custom) generates the page in UTF-8 with <meta charset="utf-8" /> but I dont know how to do it for the Http server page. Thank you

User-inserted image


ARC Pro

Upgrade to ARC Pro

Join the ARC Pro community and gain access to a wealth of resources and support, ensuring your robot's success.

#1  

If I try with Bing Speech Recognition everything works. But if I try with the Http Server page and a voice recognition framework that uses it, it does not work. This :

 var url = 'http://192.168.1.78/exec?password=admin&amp;script=Botquery(&quot;'+phrase+'&quot;)'; 

or this

 var url = 'http://192.168.1.78/exec?password=admin&amp;script=ControlCommand(&quot;PandoraBot&quot;, SetPhrase, &quot;'+phrase+'&quot;)'; 

if I say "bonne journée" send :

http://192.168.1.78/exec?password=admin&amp;script=Botquery(&quot;bonne journ&#233;e&quot;)

but don't work. If I say "bonjour" it works

I can't be more specific.

#4  

@ptp Of course it will work but here is the answer generated: "Je suis n? le 7 d?cembre 2001" Whether I use the framework or not I have the same answer with ? instead of é. That I use Pandorabot and Synbot with Http server I get the same thing.

#5  

All my AIML or SIML files are encoded in UTF-8

 &lt;? xml version = &quot; 1.0 &quot; encoding = &quot; utf-8 &quot;
PRO
Synthiam
#6  

Understood - but to transfer data over http requests requires encoding. Which is why you see encoded characters in urls of your favorite websites.

Post more details of your project and we’ll help by understanding more to ensure we give the right solution. Either way, http urls need encoding as it’s a defined standard by the http protocol.

#7  

Okay. I'll see that tomorrow. It is 3:29 in France. Thanks for your help. sleep