I'm developing a little USB device for use with macOS, and the name includes the non-ASCII character ū:
My source file is UTF-8 encoded, but as I understand it, USB uses UTF-16LE encoding for all its strings.
GCC (which I'm using to compile the code for the device) doesn't implement the \u unicode point escape. So I tried "productname\xc5\xab", which causes USB Prober to report the Product String as "productname\u016b".
Is that just USB Prober not properly rendering the string? Or am I still not encoding it correctly?
Code Block LATIN SMALL LETTER U WITH MACRON Unicode: U+016B, UTF-8: C5 AB
My source file is UTF-8 encoded, but as I understand it, USB uses UTF-16LE encoding for all its strings.
GCC (which I'm using to compile the code for the device) doesn't implement the \u unicode point escape. So I tried "productname\xc5\xab", which causes USB Prober to report the Product String as "productname\u016b".
Is that just USB Prober not properly rendering the string? Or am I still not encoding it correctly?