[Interest] Using UTF-8 code page with Qt5 on Windows?

Thorsten Glaser t.glaser at tarent.de
Thu May 19 17:52:22 CEST 2022


On Thu, 19 May 2022, Alvin Wong wrote:

> > Windows were all DBCS. It might not be worth fixing the codec implementation

> explicitly in docs that MBCS uses longer than 2 bytes per character,

AIUI it is so that:

• SBCS: all characters are one byte and one screen column

• DBCS: all characters are one or two bytes, and as many
  screen columns as they have bytes (in most encodings)

• MBCS: characters are some amount of bytes (1, 2, 3, …)
  and some amount of screen columns, with no direct connection


Classical Windows only supported SBCS, Classical Asian Windows
also DBCS, and NT did both but UCS-2 backed. UTF-16 and MBCS
support is newer.

IIRC,
//mirabilos
-- 
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)


More information about the Interest mailing list