我调用的是WebService接口的网关!目标是短信开发。WebService中有个“Send”方法,其中有个参数就是短信内容,但为什么我写出来的程序在发送短信时对方手机总是收到全是“?”,而且只有中文有错,发英文字符不会出错。我试着用Utf8Decode,AnsiToUtf8,UnicodeToUtf8,等方法,但都不能解决问题!

解决方案 »

  1.   

    Call Utf8Encode to convert a Unicode string to UTF-8. WS is the Unicode string to convert. Utf8Encode returns the corresponding UTF-8 string.
      

  2.   

    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.
      

  3.   

    发送的时候 UTF8Decode    解析的时候  Utf8Encode