var
  w: WideString;
  i: Integer;
  s: string;
  List: TStringList;
begin
  List := TStringList.Create;

  for i := $4e00 to $9fa5 do
  begin
    s := #36 + IntToHex(i,4); {#36 是 $ 字符}
    w := WideChar(i);
    List.Add(s + '=' + w);
  end;

  List.SaveToFile('c:\temp\Unicode-Hz.txt');
  List.Free;
end;

posted on 2007-12-15 22:09  万一  阅读(7829)  评论(2编辑  收藏  举报