Indy10 IdudpServer获取字符串string类型数据,采用Read事件,TIdBytes类型的使用,支持中文,双字节。
indy10变化相当大,都不会用了。开始被Tidbytes这个类型搞晕。
Indy10 IdudpServer使用
uses IDGlobal;
Read事件主要代码:
s:=enutf8.getting(adata);
s := UTF8ToString(adata);
研究一天 需要加转码格式
Indy10 IdudpServer获取字符串string类型数据,采用Read事件,TIdBytes类型的使用,支持中文,双字节。
indy10变化相当大,都不会用了。开始被Tidbytes这个类型搞晕。
Indy10 IdudpServer使用
uses IDGlobal;
Read事件主要代码:
s:=enutf8.getting(adata);
s := UTF8ToString(adata);
研究一天 需要加转码格式