Nusoap with UTF-8 |
Site Admin
|
NuSoap supports three encodings: ISO-8859-1, US-ASCII, and UTF-8.
Did you try to set $soap_defencoding property? |
||||||||||||
_________________ The PHP IDE team |
|
Thanks for your answer.
This is what i've done : in my webservice.php :
I've modified the file nusoap.php, comment the line
uncomment the line
the same thing has be done in the file class.nusoap_base.php When i call the file : webservice.php?wsdl I've :
To register the ws, i'm setting the document style and the literal use. What am I doing wrong ? Thanks for your help |
||||||||||||||||||||
|
|
this is not possible ?
|
||||||||||||
|
xmmm |
|
try this
$client->soap_defencoding = 'UTF-8'; $client->decode_utf8 = false; |
||||||||||||
|
utf-8 my solution |
|
I was using a vb2008-express to test connection with my php webservice.
text that i sent to from the desktop vb program was returned from the webservice to the desktop application. but, hebrew came back as ??????. what solve the problem (after converting all ISO-8859-1 to UTF-8, and in the vb sending the string after .normalize() ), is that I submitted the post_data like that: $server->service(utf8_encode($POST_DATA)); that did the trick. |
||||||||||||
|
|
In the file nusoap.php, around line 5480, you should change:
FROM: $xml = '<?xml version="1.0" encoding="ISO-8859-1"?>'; TO: $xml = '<?xml version="1.0" encoding="UTF-8"?>'; After that, your webservice will be like this <?xml version="1.0" encoding="UTF-8" ?> |
||||||||||||
|
Re: xmmm |
|
Hello, i'm having about the same problem here and this did not work for me. Do you have any other ideas ? thanks |
||||||||||||||
|
|
this is not possible ? Crying or Very sad....
_________________ GuL |
||||||||||||
|
|
Set the 'decode_utf8' for the server too.
|
||||||||||||||
|
Nusoap with UTF-8 |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by