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

前端 未结 6 616
情书的邮戳
情书的邮戳 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 23:05

    The problem is that í != i. Try to convert your string to UTF-8 before using in a request. It may look like that:

    $string = iconv('windows-1252', 'UTF-8', $string);
    

    See http://php.net/iconv

提交回复
热议问题