php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42887 SOAP-ERROR: Encoding: string
Submitted: 2007-10-08 11:06 UTC Modified: 2007-10-18 09:46 UTC
From: albert dot keil at gmail dot com Assigned:
Status: Closed Package: SOAP related
PHP Version: 5.2.4 OS: FreeBSD 5.4
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: albert dot keil at gmail dot com
New email:
PHP Version: OS:

 

 [2007-10-08 11:06 UTC] albert dot keil at gmail dot com
Description:
------------
When I try to transfer via soap web service utf-8 encoded (by iconv) string I got the following error 

Trace response:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string 'SOAP-ERROR: Encoding: string '&#1500;&#1489;&#1491;&#1493;&#1511; &#1502;&#1492; &#1511;&#1493;&#1512;&#1492; &#1506;&#1501; &#1505;&#1496;&#1497;&#1497;&#1492; &#1489;&#1491;&#1493;&#1495; &#1495;&#1513;&#1489;&#1493;&#1504;&#1493;&#1514; &#1502;&#1493;&#1500; &#1491;&#1493;&#1495; &#1492;&#1499;&#1504;&#1505;&#1493;&#1514; </faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>

The most strange phenomena is that when I try to pass sub_str($str, 0, 56) string it doesn't work, but substr($str,0,55).substr($str,8) works ! Any suggestions ?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-10-18 09:46 UTC] albert dot keil at gmail dot com
The reason was wrong usage of substr with utf-8 (instead of mb_substr).
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 22:01:26 2025 UTC