procedure TForm1.Button1Click(Sender: TObject);
var
A: array[Word] of Integer;
begin
A[Ord(WideString('汗')[1])] := 2007;
A[Ord(WideString('啊')[1])] := 2008;
Borland Delphi Version 15.0
Copyright (c) 1983,2002 Borland Software Corporation
test.dpr(4) Error: Illegal character in input file: '汉' ($BABA)
test.dpr(4) Error: Illegal character in input file: '字' ($D7D6)
test.dpr(7) Error: Illegal character in input file: '汉' ($BABA)
test.dpr(7) Error: Illegal character in input file: '汉' ($BABA)
test.dpr(7) Error: Data type too large: exceeds 2 GB
test.dpr(7) Error: Number of elements differs from declaration
test.dpr(8) Error: Illegal character in input file: '循' ($D1AD)
test.dpr(8) Error: Illegal character in input file: '字' ($D7D6)
test.dpr(10) Error: Illegal character in input file: '循' ($D1AD)
test.dpr(10) Error: Illegal character in input file: '汉' ($BABA)
test.dpr(11) Error: Illegal character in input file: '汉' ($BABA)
test.dpr(11) Error: Illegal character in input file: '环' ($BBB7)
test.dpr(12) Error: Expression expected but 'END' found