procedure StrToASCII;<br>var<br> User: string;<br> i,j: Integer;<br> k: String;<br>begin<br> User := '中国';<br> K:='';<br> for i:=0 to Length(User)-1 do<br> begin<br> j:= ord((pchar(user) + i)^);<br> K:=k+IntToHex(j,2);<br> end;<br> ShowMessage(K);<br>end;<br>