dhylands / serial-monitor

usb-ser-mon implemented in rust
MIT License
54 stars 11 forks source link

Unable to read non-utf8 data on windows #11

Open TheButlah opened 1 year ago

TheButlah commented 1 year ago
❯ serial-monitor -e
Connected to COM14
Press Control-X to exit
thread 'main' panicked at 'failed printing to stdout: Windows stdio in console mode does not support writing non-UTF-8 
byte sequences', library\std\src\io\stdio.rs:1009:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I need to read non-utf8 data because I'm getting raw binary data from my serial device (it is printing defmt-encoded bytes) and then want to pipe that output to another program to decode the bytes.

How can I achieve this?