#25 FB_Payload: UTF-8 strings

MVP basic protobufs
closed
None
2020-09-14
2020-04-16
i-campbell
No

sparkplug uses UTF-8 strings, so need to use WSTRINGS and convert from UTF-16 LE to UTF-8 using STUtil library.
Have checked, and WSTRING is UTF-16, so a character can be either 1 or 2 words. This is fully compatible with the whole of UTF-8 encoding, it just needs to be converted.
As a test, the "𐐷" U+10437 character is stored as: 01D8 37DC in a WSTRING

Discussion

  • i-campbell

    i-campbell - 2020-04-16
    • status: open --> accepted
    • assigned_to: i-campbell
     
  • i-campbell

    i-campbell - 2020-07-04
    • status: accepted --> closed
     

Log in to post a comment.