Share via


Expected hexadecimal digit

You created an incorrect Unicode escape sequence. Unicode escape sequences begin with \u, followed by exactly four hexadecimal digits (no more and no less). Unicode hexadecimal digits can contain only the numbers 0-9, the upper case letters A-F, and the lower case letters a-f. The following example demonstrates a correctly formed Unicode escape sequence.

z = "\u1A5F";  

To correct this error

  • Be sure your Unicode hexadecimal digits begin with \u, contains only the numbers 0-9, the upper case letters A-F, the lower case letters a-f; and are grouped into four digits.

    Note

    If you want to use the literal text \u in a string, then use two backslashes - (\\u) - one to escape the first backslash.

See also

Data Types