Welcome to Synthiam!

Program robots using technologies created by industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation, and artificial intelligence easy.

Get Started
France
Asked — Edited

Ez_Builder Tcp _Script_Interface_Client - Encoding Character Question

Hi

I am trying to use TCP script interface client Tutorial 52

I have problem with french accent à é for example.
The character is not received correctly in the TCP server and so not passed correctly to my plugin.

I have tried to change encoding in the send command code

tcpClient.Client.Send(System.Text.Encoding.ASCII.GetBytes(cmd + Environment.NewLine));
changed to
tcpClient.Client.Send(System.Text.Encoding.GetEncoding("ISO-8859-1").GetBytes(cmd + Environment.NewLine));

I try also UNICODE and UTF8 encoding.

Is there a solution ?

All is working fine if I use EZ HTTP server to send the command.

Thanks for your help


ARC Pro

Upgrade to ARC Pro

Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.

AI Support Bot
Related Content
Synthiam
PRO
Synthiam
#1  
The tcp server accepts ascii 8 bit single character byte characters, that means no encoding. Encoding requires multiple bytes per character. Your option will be to create a plugin with encoded character support.