调用WebService接口,编制短信出现乱码(全是?????)

guest8188 2006-06-07 09:05:52
我调用的是WebService接口的网关!目标是短信开发。WebService中有个“Send”方法,其中有个参数就是短信内容,但为什么我写出来的程序在发送短信时对方手机总是收到全是“?”,而且只有中文有错,发英文字符不会出错。我试着用Utf8Decode,AnsiToUtf8,UnicodeToUtf8,等方法,但都不能解决问题!
...全文
258 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
飞天揽月 2006-06-07
  • 打赏
  • 举报
回复
发送的时候 UTF8Decode 解析的时候 Utf8Encode
飞天揽月 2006-06-07
  • 打赏
  • 举报
回复
Call UTF8Decode to convert a UTF-8 string to Unicode. S is a string encoded in UTF-8. UTF8Decode returns the corresponding WideString value that represents the string in Unicode.
飞天揽月 2006-06-07
  • 打赏
  • 举报
回复
Call Utf8Encode to convert a Unicode string to UTF-8. WS is the Unicode string to convert. Utf8Encode returns the corresponding UTF-8 string.
wudi_1982 2006-06-07
  • 打赏
  • 举报
回复
一般发送短信的都有个设置,一个是对中文的,一个是对英文的。

1,593

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 网络通信/分布式开发
社区管理员
  • 网络通信/分布式开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧