4

我以为我开始了解 Unicode,但这让我很吃惊:

const
c1 = #1;   --> SizeOf() = 2
c2 = #33;  --> SizeOf() = 2
c3 = #127; --> SizeOf() = 2
c4 = #128; --> SizeOf() = 1
c5 = #160; --> SizeOf() = 1 
c6 = #161; --> SizeOf() = 1 
c7 = #255; --> SizeOf() = 1 

谁能解释一下?Delphi XE2,默认 Windows-1252 代码页

谢谢简

4

1 回答 1

8

已记录在案 - 请参阅$HIGHCHARUNICODE指令

于 2012-09-06T10:50:48.437 回答