Menu

#400 Spurious "Warning: xxx is an invalid Unicode UTF-8 byte sequence" messages

closed-fixed
Maettu
Domain (152)
8
2018-01-12
2017-12-07
No

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.

Discussion

  • David Crocker

    David Crocker - 2017-12-07

    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
  • Maettu

    Maettu - 2017-12-07
    • labels: --> Domain
    • status: unread --> open-accepted
    • assigned_to: YAT - Yet Another Terminal --> Maettu
    • Priority: 5 --> 8
     
  • Maettu

    Maettu - 2017-12-08

    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.

     
  • Maettu

    Maettu - 2017-12-28

    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 - Yet Another Terminal

    • status: open-accepted --> closed-fixed
     
  • YAT - Yet Another Terminal

    YAT 1.99.90 fixing this issue has just been released.

     

Log in to post a comment.