2
I am making a request to a webservice with PHP(Soapclient), and when I have special characters, error/ defrormation occurs.
What I’ve already tried:
Set the parameter 'encoding'=>'ISO-8859-1'
or 'encoding'=>'UTF-8'
.
I also tried to put utf8_encode
/ utf8_decode
.
I tried to use the iconv
and nothing.
What happens:
Sometimes you can not make the request, sometimes you do but there on the server is disfigured or with "?" or without the accentuated character.
Errors also occur in:
Invalid byte 2 of 3-byte UTF-8 Sequence.
SOAP-ERROR: Encoding: string '2 test xe1...' is not a Valid utf-8 string
What I didn’t try:
I didn’t try to use the functions mb( Multibyte String )
, because it is not enabled, as I am at work, it is a novel to ask to enable.
For this reason, I would like to know whether the only output is to use an Mb function. I tried every possible tip I could find out there and nothing worked 100%.