When I compile the app using your character, I get the following message;
"debug.ino" contains unrecognized characters.If this code was created with an older version of Processing,you may need to use Tools -> Fix Encoding & Reload to updatethe sketch to use UTF-8 encoding. If not, you may need todelete the bad characters to get rid of this warning
You may need to do as it suggests to get it to work.
You can use Serial.write() and send raw hex code out.
How the other end interprets the code will determine what is displayed.
For example, if you do this:
for (x=0x48; x<128; x=x+1){
Serial.write(x);
delay(250);
}
you will see
0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZavcdefghijklmnopqrstuvwxyz
and some punctuation marks because the serial monitor recognizes the ASCII codes.
aarondc:
That's why you see 2 characters "Then what I see in the textBox is: "ç ç"" as the textbox is not unicode capable / enabled.
Actually the "\u00e7" shows as a "ç" in the textBox, which is correct
aarondc:
When I compile the app using your character, I get the following message;
"debug.ino" contains unrecognized characters.If this code was created with an older version of Processing,you may need to use Tools -> Fix Encoding & Reload to updatethe sketch to use UTF-8 encoding. If not, you may need todelete the bad characters to get rid of this warning
You may need to do as it suggests to get it to work.
I don't have this message, also I tried before, the Fix Encoding thing, but it only resulted in the Arduino IDE's Serial Monitor displaying "Commande reçue".
I tried
this->serialPort1->Encoding = Encoding::UTF8;
I tried every possible encodings for this setting, and also many other things like encode the input to another encoding... I can't get it working
Yeah I tried previously every Encoding, BUT Default (I didn't know it was an encoding type), I thought it wouldn't change anything, but in fact that was the (or, one) solution!