reaktor
France
Asked
— Edited
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
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 :
or this
if I say "bonne journée" send :
but don't work. If I say "bonjour" it works
I can't be more specific.
@reaktor:
can you try the following url:
URL Encode your parameters
What ever language your client is programmed in should have something equivalent
https://www.urlencoder.org/
@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.
All my AIML or SIML files are encoded in UTF-8
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.
Okay. I'll see that tomorrow. It is 3:29 in France. Thanks for your help. sleep
Get some sleep
@DJ: The Http Server control has a bug/problem with the encoding.
steps to reproduce: 1) Start an empty project with http server and variable watcher control
2) set a variable $text1 with some accents:
The variable is correctly assigned and ez-scripts prints the variable too:
4) retrieve the variable content:
The content returned is broken!
@ptp Thank you very much for finding. When I was doing a wikipedia search it worked but with http server didn't works. This confirms my doubts. Another thing with Synbot, when I want to use the console script tab with Http server the page doesn't exist.
Solved for accent recognition in the Http query. I edit this in my javascript file and it works now.
But for the return of the text in the page Http server, we always have pr?f?r? and not préféré.
Can you please explain/detail the issue ?
It's not too bad because the plugin works perfectly. But when I click on the Script Console page does not work. This is only done with Synbot. If I delete the plugin the page works again.
@Reaktor: That's an Interesting finding, although is not related to SynBot.
@DJ: It happens when you have a project with http server a plugin component and you use script console (browser)
Test: Dynamixel plugin with http server