How to force UTF-8 encoding? |
Site Admin
|
there are two settings to care of in this case:
$soapclient->soap_defencoding that should be set to 'UTF-8' or 'ISO-8859-1' decode_utf8 property that can be true or false |
||||||||||||
|
|
i assume the first suggestion depends on the client (which is not on my end). decode_utf8 is set to true here which is the standard setting. To check myself i ran the wsdl page in firefox which produced an ISO-8859-1 output.
so basically i can tell the client that the encoding depends on his setup? |
||||||||||||
|
Site Admin
|
ahh right,
I missed the point that it's server.. Server handles encoding like shown below:
So if client specifies either ISO-8859-1 or US-ASCII or UTF-8 by issuing Content-Type http header, it will be used, otherwise server falls back to ISO-8859-1. |
||||||||||||||
|
|
For testing i changed the fallback branch to UTF-8, even AFTER the else part so it would definately end up with UTF-8 no matter what:
but nothing helped, the xml reply still shows
i even replaced all occurences of
with
to provocate another behaviour but no success btw: appreciate ur support |
||||||||||||||||||||
|
|
I also set soap_defencoding to UTF-8 and called the WSDL with my own nusoap client:
result:
|
||||||||||||||||
|
Site Admin
|
Maybe it will be faster, if you setup NuSphere PHPED with php debugger and step through your own and nusoap code to see how everything is handled?
I think it's not really hard. Please let me know if there are any problems with this "approach" |
||||||||||||
|
works!!!! |
|
esto funciono para mi
hay que reemplazar todas las entradas de xml_encoding como figura a continuacion: "xml_encoding =" (sin comillas) por "xml_encoding = 'UTF-8'; //" (nuevamente, sin comillas) |
||||||||||||
|
How to force UTF-8 encoding? |
|
||
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