--- In [email protected], "swzoh" <sean...@...> wrote: > No, it doesn't detect 0x920x7C as an invalid multibyte character, i.e., just > return 2. All I tried so far doesn't work perfectly: mblen, CharNext. > I've been unable to find a single API which both detects and validates a double-byte character. The best way appeared to me so far seems to validate using MultiByteToWideChar after detecting it.
MultiByteToWideChar(CP_ACP, MB_ERR_INVALID_CHARS, lpChar, 2, NULL, 0)
