I am confused about the difference between encodings that are
- represented with
\x
, like\x68\x65\x6c\x6c\x6f
vs. - ones using
\u
, such as\u0068\u0065\u006c\u006c\u006f
.
I've been playing around with https://convertcodes.com/unicode-converter-encode-decode-utf/ and it seems like UTF-16 uses \u
and UTF-8 uses \x
, but from other sources I've read that \x
is not specific to UTF-8 and \u
is not specific to UTF-16. What is the difference, can both encodings use both of these delimiters? Furthermore, is the title of this question even correct? Can these be referred to as binary delimiters? Are the example strings (\x68\x65\x6c\x6c\x6f
and \u0068\u0065\u006c\u006c\u006f
) considered binary Strings, BLOBs, or something else? What is the proper name for these types of Strings?