|
@@ 4381-4392 (lines=12) @@
|
| 4378 |
|
|
| 4379 |
|
return false; |
| 4380 |
|
} |
| 4381 |
|
if (strpos($headers['content-type'], '=')) { |
| 4382 |
|
$enc = str_replace('"', '', substr(strstr($headers["content-type"], '='), 1)); |
| 4383 |
|
$this->debug('Got response encoding: ' . $enc); |
| 4384 |
|
if (preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)) { |
| 4385 |
|
$this->xml_encoding = strtoupper($enc); |
| 4386 |
|
} else { |
| 4387 |
|
$this->xml_encoding = 'US-ASCII'; |
| 4388 |
|
} |
| 4389 |
|
} else { |
| 4390 |
|
// should be US-ASCII for HTTP 1.0 or ISO-8859-1 for HTTP 1.1 |
| 4391 |
|
$this->xml_encoding = 'ISO-8859-1'; |
| 4392 |
|
} |
| 4393 |
|
$this->debug('Use encoding: ' . $this->xml_encoding . ' when creating nusoap_parser'); |
| 4394 |
|
// parse response, get soap parser obj |
| 4395 |
|
$parser = new nusoap_parser($data,$this->xml_encoding,'',$this->decode_utf8); |
|
@@ 7773-7784 (lines=12) @@
|
| 7770 |
|
|
| 7771 |
|
return false; |
| 7772 |
|
} |
| 7773 |
|
if (strpos($headers['content-type'], '=')) { |
| 7774 |
|
$enc = str_replace('"', '', substr(strstr($headers["content-type"], '='), 1)); |
| 7775 |
|
$this->debug('Got response encoding: ' . $enc); |
| 7776 |
|
if (preg_match('/^(ISO-8859-1|US-ASCII|UTF-8)$/i',$enc)) { |
| 7777 |
|
$this->xml_encoding = strtoupper($enc); |
| 7778 |
|
} else { |
| 7779 |
|
$this->xml_encoding = 'US-ASCII'; |
| 7780 |
|
} |
| 7781 |
|
} else { |
| 7782 |
|
// should be US-ASCII for HTTP 1.0 or ISO-8859-1 for HTTP 1.1 |
| 7783 |
|
$this->xml_encoding = 'ISO-8859-1'; |
| 7784 |
|
} |
| 7785 |
|
$this->debug('Use encoding: ' . $this->xml_encoding . ' when creating nusoap_parser'); |
| 7786 |
|
$parser = new nusoap_parser($data,$this->xml_encoding,$this->operation,$this->decode_utf8); |
| 7787 |
|
// add parser debug data to our debug |