microsoft / vscode-serial-monitor

Serial Monitor that allows for reading and writing to serial ports. Official issue tracking repository for Microsoft's Serial Monitor VS Code extension.
MIT License
55 stars 7 forks source link

Problem with UTF-8 characters using ESP32 #190

Open MicSG-dev opened 1 month ago

MicSG-dev commented 1 month ago

I did some tests with Arduino boards of different models with a baudrate of 115200 using the following Arduino sketch:

void setup() {
 Serial.begin(115200);
}

void loop() {
 Serial.println("ã");
 Serial.println("ç");
 delay(1000);
}
Testing Results: Raspberry Pi Pico
DOIT ESP32 DEVKIT V1
Arduino Mega

The strangest thing is that when using the same ESP32 board with other Serial Monitors the result is successful:

When using hexadecimal output in the vscode-serial-monitor extension, with both the Raspberry Pi Pico which succeeds and the ESP32 which fails the tests, the same content is presented: image

Originally posted by @MicSG-dev at https://github.com/microsoft/vscode-serial-monitor/issues/168#issuecomment-2232173670

alka79 commented 1 month ago

Hi, I ran in the same issue (which is quite surprising in 2024). I switched to pre-release of the Serial Monitor extension [ v0.12.240807001 (pre-release) ] and it works on a ESP32-S3 :)