From: Maximus5 <Con...@gm...> - 2012-11-19 12:47:35
|
waterlan <waterlan@...> writes: > > Maximus schreef op 2012-11-19 07:57: > > > > Hm. I don't think that european builds of Win are DBCS capable in > > mind of > > console. But I have not check this thoroughly. There are many > > differences in > > console processing wich may break your app functionality. For > > example, in EU > > versions "one cell - one unicode symbol". > > But this rule is broken in Chinese builds. > > Hieroglyphes uses TWO cells (DBCS yes?) while latin chars uses only > > one. > > Some functions (which works normally in EU) will fails on DBCS > > consoles. > > And so on. > > > > DBCS just means character sets where ALL characters are encoded in two > bytes. This does not mean that the width of all the characters is two > cells. > CP936 is actually a MBCS (multi-byte character set). The ASCII > characters take only one byte. > But this is all not Unicode. > > See also http://en.wikipedia.org/wiki/DBCS MSDN defines DBCS "slightly" different :D http://msdn.microsoft.com/en-us/library/windows/ desktop/dd317794(v=vs.85).aspx Due to MSDN - DBCS is "expanded 8-bit character set" and "Some characters in a DBCS, including the digits and letters used for writing English, have single-byte code values". And it is true to CP936 and other "MBCS" codepages. That I mean. Each character may be one or two bytes AND one or two CELLS (weird). regards |