https://www.w3.org/TR/2026/WD-rdf12-turtle-20260320/#sec-escapes
Note that JavaScript has three types of escapes. The \xHH form must have two hexadecimal digits; the \uHHHH form must have four; the \u{H…H} form may have 1 to 6 hexadecimal digits.
\u{H…H} is convenient because it allows for variant length of hexadecimal digits, and we recommend it. We hope rdf-turtle can also add this approach.
https://www.w3.org/TR/2026/WD-rdf12-turtle-20260320/#sec-escapes
Note that JavaScript has three types of escapes. The
\xHHform must have two hexadecimal digits; the\uHHHHform must have four; the\u{H…H}form may have 1 to 6 hexadecimal digits.\u{H…H}is convenient because it allows for variant length of hexadecimal digits, and we recommend it. We hope rdf-turtle can also add this approach.