var
i:Integer;
j:String;
Input:WideString;
re:String;
begin
j:='中国';
Input:=j;
re :='';
for i := 1 to Length(Input) do
re := re + Format('%4.4X', [ord(Input[i])]);
Edit1.Text:=re;
end;end.
一上代码将中文转换成了PDU格式的字符串
怎么将转换成的字符串在转换成中文啊!!!
i:Integer;
j:String;
Input:WideString;
re:String;
begin
j:='中国';
Input:=j;
re :='';
for i := 1 to Length(Input) do
re := re + Format('%4.4X', [ord(Input[i])]);
Edit1.Text:=re;
end;end.
一上代码将中文转换成了PDU格式的字符串
怎么将转换成的字符串在转换成中文啊!!!
解决方案 »
- 我用DBGridEh显示数据库查询结果,数据库为access,用SQL语句查询,怎么在DBGridEh中将0值或0.00显示为空格
- delhpi好像会自动把注册信息发送到borland的网站上去,如何屏蔽这些注册信息
- 弟弟病了,还未确诊是否是肺结核,可是非常担心,祝他早日康复,接受大家的祝福,谢谢!--1
- 请教
- 求教MDI最大化子窗体之间无缝切换的方法
- 关于ACCESS数据库和SELECT语句的问题
- activex控件都是通用的吗?
- 大家响应下号召,推荐下我们版的精华帖啦~!谢啦谢啦~!
- 急,报表问题,那位大虾救救我啊
- 无法更新 当前被锁定 是怎么回事?
- 为什么插入记录变成了追加记录
- 如何把 BMP 转成 GIF ?速度越快越好。最好是用流方式的。代码越小越好。
i,L:integer;
input:string;
WC:dword;
output:widestring;
begin
Input:=Edit1.Text;
L:=Length(Input) div 4;
output:='';
for i:= 0 to L-1 do
begin
WC:=StrToIntDef('$'+Copy(Input,i*4+1,4),0);
output:=output+widechar(wc);
end;
edit2.Text:=output;
end;