Function Unicode2Chs(AiUniCode : Integer) : String;<br>Var<br> ch, cl : String[3]; <br> s : String; <br>Begin <br> s := IntToHex(AiUniCode, 2);<br> cl := '$' + Copy(s, 1, 2);<br> ch := '$' + Copy(s, 3, 2);<br> if ch='$' then s := Chr(StrToInt(cl)) + #0<br> else s := Chr(StrToInt(ch)) + Chr(StrToInt(cl)) + #0;<br> Result := WideCharToString(pWideChar(s));<br>end;