Spurious "Warning: xxx is an invalid Unicode UTF-8 byte sequence" messages
Yet Another Terminal :: Serial Communication :: Engineer/Test/Debug
Brought to you by:
maettu_this,
y-a-terminal
When my embedded device sends the following line to YAT:
; generated by RepRapFirmware Configuration Tool on Thu Aug 10 2017 20:12:14 GMT+0200 (Mitteleuropäische Sommerzeit)
YAT 1.99.80 displays this line:
; generated by RepRapFirmware Configuration Tool on Thu Aug 10 2017 20:12:14 GMT+0200 (Mitteleurop<Warning: "C3h="" A4h="" 69h"="" is="" an="" invalid="" Unicode="" UTF-8="" byte="" sequence!="">sche Sommerzeit)
with the warning text in orange. However, C3h A4h is valid, it is the encoding for a-umlaut.
Correction: what is actualty displayed isn't quite the above, the = signs and quotes were added by SourceForge. It displays this:
; generated by RepRapFirmware Configuration Tool on Thu Aug 10 2017 20:12:14 GMT+0200 (Mitteleurop<Warning: "C3h A4h 69h" is an invalid Unicode UTF-8 byte sequence!>sche Sommerzeit)
Last edit: David Crocker 2017-12-07
David, thanks for reporting this issue, I really appreciate it! The issue has been caused by the fix of bug #343 for 1.99.70 and I will fix it for the upcoming 1.99.90.
As a workaround, go to [Terminal > Settings... > Advanced...] and change the endianness to Little-Endian. As you may guess, I have accidentally applied the endianness setting to all multi-byte character encoding. But of course UTF8 is independent on endianness, the endianness only applies to to single multi-byte values, not multi-byte values split into multiple fragments... Sorry for the inconvenience.
Bug has been fixed and a new version 1.99.90 will be released within the next couple of weeks.
Leaving this bug open until 1.99.90 has been released, so others can see this bug entry.
YAT 1.99.90 fixing this issue has just been released.