Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am retrieving data which is ISO-8859-1 encoded and wish to use the SOAP server to send it to a PHP client. Leaving the strings as they are results in corruption.
The documentation that I have read suggests that if strings contain non-ASCII values you need to specify the type string explicitly to avoid encoding the string as a base64 value. The example shows prevention on a per-string basis, but as the code is just a dispatcher, there is no point at which I can interject code along the lines of
my $string = SOAP::Data->type(string => $utf);
Could someone explain how I could do this globally for the program, or suggest another way which might prevent this corruption?
I've also tried base64Binary encoding all strings by replacing as_string, but the client does not like this.
Thank you for your help.
|
|---|