Problem with nusoap and certain characters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to pass a GPB character (£) as a parameter to nusoap and I
am having problems.

I am using nusoap 0.6.3 with PHP 4.2.2 on Windows NT 5.0 and Apache
2.0.39.

Please see code below for the server and the client.

When I remove '£' from the parameter, it works fine.

However, if I change '£' to '£' it does work - I woudl prefer not
to use a character entity defined by number as it is less reliable than by
name (on my browser it does not return a pound sign when rendered in HTML
but an odd L-shaped character).

Regards

Jon Goodwin.


<?php
// client.php
require_once("nusoap.php");

$soapclient = new
soapclient('http://localhost/dev/lib/SOAP/test/server.php');

$sv  = new soapval('txt', 'string', 'Testing &lt; &amp; &pound;');
$params = array($sv);

echo "Result=" . $soapclient->call('test', $params);

echo("<h3>Request</h3><xmp>" . $soapclient->request . "</xmp>");
echo("<h3>Response</h3><xmp>" . $soapclient->response . "</xmp>");

?>


<?php
// server.php
require_once("nusoap.php");

$s = new soap_server;

$s->register('test');

function test($txt)
{
  return $txt;
}

$s->service($HTTP_RAW_POST_DATA);

?>

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux