SOAP-ERROR: Encoding: string … is not a valid utf-8 string

前端 未结 6 579
情书的邮戳
情书的邮戳 2021-01-02 22:10

Hi I have a web service built using the Zend Framework. One of the methods is intended to send details about an order. I ran into some encoding issue. One of the values bein

6条回答
  •  囚心锁ツ
    2021-01-02 22:53

    The answers above lead me to try:

    // encode in UTF-8
    $string = utf8_encode($string);
    

    which also resolved the error for me.

    Reference: utf8_encode()

提交回复
热议问题