
reaktor
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
This :
Code:
or this
Code:
if I say "bonne journée" send :
but don't work.Code:
If I say "bonjour" it works
I can't be more specific.
can you try the following url:
Code:
What ever language your client is programmed in should have something equivalent
https://www.urlencoder.org/
"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.
Code:
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.
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:
Code:
3)
The variable is correctly assigned and ez-scripts prints the variable too:
4)
retrieve the variable content:
Code:
The content returned is broken!
Code:
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 ?
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