Special Characters are being Removed

2008-09-22
2013-06-06
  • John Schattel
    John Schattel
    2008-09-22

    While going from PHP 5.2.5 to PHP 5.2.6, nusoap appears to be removing special characters like left and right angle brackets and quotes from the response document (see nusoap debug info below).  Does anyone know why nusoap is removing HTML special characters and what can be done to turn this feature off?

    In advance, thanks.

    John

    2008-09-22 15:58:29.569114 soapclient: Got response encoding: ISO-8859-1
    2008-09-22 15:58:29.569289 soapclient: Use encoding: ISO-8859-1 when creating nusoap_parser
    2008-09-22 15:58:29.569471 nusoap_parser: Charset from HTTP Content-Type matches encoding from XML declaration
    2008-09-22 15:58:29.569545 nusoap_parser: Entering nusoap_parser(), length=4095, encoding=ISO-8859-1
    2008-09-22 15:58:29.570154 nusoap_parser: found root struct NDFDgenResponse, pos 2
    2008-09-22 15:58:29.571498 nusoap_parser: in buildVal() for NDFDgenResponse(pos 2) of type struct
    2008-09-22 15:58:29.571572 nusoap_parser: in buildVal, there are children
    2008-09-22 15:58:29.571651 nusoap_parser: in buildVal, adding Java Vector or generic compound type NDFDgenResponse
    2008-09-22 15:58:29.571736 nusoap_parser: in buildVal, return:
    array(1) {
      ["dwmlOut"]=>
      &string(2627) "?xml version=1.0?
    dwml version=1.0 xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation=http://www.nws.noaa.gov/forecasts/xml/DWMLgen/schema/DWML.xsd
      head
        product srsName=WGS 1984 concise-name=time-series operational-mode=official
          titleNOAAs National Weather Service Forecast Data/title
          fieldmeteorological/field
          categoryforecast/category
          creation-date refresh-frequency=PT1H2008-09-22T15:58:29Z/creation-date
        /product
        source
          more-informationhttp://www.nws.noaa.gov/forecasts/xml//more-information
          production-centerMeteorological Development Laboratorysub-centerProduct Generation Branch/sub-center/production-center
          disclaimerhttp://www.nws.noaa.gov/disclaimer.html/disclaimer
          credithttp://www.weather.gov//credit
          credit-logohttp://www.weather.gov/images/xml_logo.gif/credit-logo
          feedbackhttp://www.weather.gov/feedback.php/feedback
        /source
      /head
      data
        location
          location-keypoint1/location-key
          point latitude=38.99 longitude=-77.01/
        /location
        moreWeatherInformation applicable-location=point1http://forecast.weather.gov/MapClick.php?textField1=38.99amp;textField2=-77.01/moreWeatherInformation
        time-layout time-coordinate=local summarization=none
          layout-keyk-p24h-n7-1/layout-key
          start-valid-time2008-09-22T08:00:00-04:00/start-valid-time
          end-valid-time2008-09-22T20:00:00-04:00/end-valid-time
          start-valid-time2008-09-23T08:00:00-04:00/start-valid-time
          end-valid-time2008-09-23T20:00:00-04:00/end-valid-time
          start-valid-time2008-09-24T08:00:00-04:00/start-valid-time
          end-valid-time2008-09-24T20:00:00-04:00/end-valid-time
          start-valid-time2008-09-25T08:00:00-04:00/start-valid-time
          end-valid-time2008-09-25T20:00:00-04:00/end-valid-time
          start-valid-time2008-09-26T08:00:00-04:00/start-valid-time
          end-valid-time2008-09-26T20:00:00-04:00/end-valid-time
          start-valid-time2008-09-27T08:00:00-04:00/start-valid-time
          end-valid-time2008-09-27T20:00:00-04:00/end-valid-time
          start-valid-time2008-09-28T08:00:00-04:00/start-valid-time
          end-valid-time2008-09-28T20:00:00-04:00/end-valid-time
        /time-layout
        parameters applicable-location=point1
          temperature type=maximum units=Fahrenheit time-layout=k-p24h-n7-1
            nameDaily Maximum Temperature/name
            value79/value
            value73/value
            value74/value
            value72/value
            value72/value
            value74/value
            value77/value
          /temperature
        /parameters
      /data
    /dwml
    "
    }
    2008-09-22 15:58:29.571887 nusoap_parser: parsed successfully, found root struct: 2 of name NDFDgenResponse