DBCS Enabling

To write double-byte character set (DBCS) enabled code
  1. Avoid assuming:
  1. Use CharPrev and CharNext instead of p-- or p++

  2. Treat lead bytes and trail bytes as one unit

  3. Handle WM_IME_CHAR

  4. Store code page information with data

  5. Check your algorithms for: