Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Ez_Builder Tcp _Script_Interface_Client - Encoding Character Question


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


Upgrade to ARC Pro

Synthiam ARC Pro is a cool new tool that will help unleash your creativity with programming robots in just seconds!

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.