CHARENCODING — Show UTF-16 and UTF-8 encodings for characters.

Syntax:
CHARENCODING /16 /8 /C /D /K /X value "string"

/16show UTF-16 encoding
/8show UTF-8 encoding
/Cshow characters
/Dshow decimal values
/Kshow character class
/Xexpand C-style character escapes in quoted strings
valuehex character value; leading 0x or U+ is optional
"string"strign literal between quotes

You may enter characters as quoted string literals, character values, HTML 4 character entities, or any combination. You may prefix hex values with 0x or U+ but neither is required. With or without either prefix, hexadecimal is assumed. Separate values with spaces. If you specify neither /16 nor /8, the default is to show both.

/K displays a one-letter code to indicate the type of character:

KClass
Aalphabetic
Ddigit
Ppunctuation
Wwhitespace
Ccontrol character
BByte Order Mark
Nnoncharacter
Hunpaired surrogate (high) — not a character
Lunpaired surrogate (low) — not a character
-anything else

/X expands any escapes in quoted strings after the /X on the command line. Strings before the /X will not be expanded.

charencoding /c "Hello, world. %@smiley[56]"