Skip Menu |
 

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 42915
Status: open
Priority: 0/
Queue: SOAP-Lite

People
Owner: Nobody in particular
Requestors: ELACOUR [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.710.08
Fixed in: (no value)



Subject: XMLRPC::Lite miss _utf8_off if needed
Download (untitled) / with headers
text/plain 252b
This is related to SOAP::Lite bug #30271. XMLRPC/Lite.pm replace as_base64 method without this fix. Here this fall in base64 strings containing ISO8859-1 chars when I give UTF-8 chars to XMLRPC::Lite. If I Encode::_utf8_off($value) before, it works.
Subject: Re: [rt.cpan.org #42915] XMLRPC::Lite miss _utf8_off if needed
Date: Fri, 30 Jan 2009 12:42:59 +0100
To: bug-SOAP-Lite [...] rt.cpan.org
From: Martin Kutter <martin.kutter [...] fen-net.de>
Download (untitled) / with headers
text/plain 927b
Hi Emmanuel, sorry, I don't understand what you're trying to do and what went wrong. Could you please explain in more detail, preferably with some code example and error message (if any)? Thanks, Martin Am Freitag, den 30.01.2009, 04:25 -0500 schrieb Emmanuel Lacour via RT: Show quoted text
> Fri Jan 30 04:25:31 2009: Request 42915 was acted upon. > Transaction: Ticket created by ELACOUR > Queue: SOAP-Lite > Subject: XMLRPC::Lite miss _utf8_off if needed > Broken in: 0.710.08 > Severity: Important > Owner: Nobody > Requestors: ELACOUR@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=42915 > > > > This is related to SOAP::Lite bug #30271. > > XMLRPC/Lite.pm replace as_base64 method without this fix. Here this fall > in base64 strings containing ISO8859-1 chars when I give UTF-8 chars to > XMLRPC::Lite. If I Encode::_utf8_off($value) before, it works. > >
Subject: Re: [rt.cpan.org #42915] XMLRPC::Lite miss _utf8_off if needed
Date: Fri, 30 Jan 2009 18:53:54 +0100
To: Martin Kutter via RT <bug-SOAP-Lite [...] rt.cpan.org>
From: Emmanuel Lacour <elacour [...] home-dn.net>
Download (untitled) / with headers
text/plain 1.5k
On Fri, Jan 30, 2009 at 12:41:19PM -0500, Martin Kutter via RT wrote: Show quoted text
> <URL: http://rt.cpan.org/Ticket/Display.html?id=42915 > > > Hi Emmanuel, > > sorry, I don't understand what you're trying to do and what went wrong. > Could you please explain in more detail, preferably with some code > example and error message (if any)? >
I'm going to try ;) I discovered the problem when trying to use XMLRPC::Lite in our RT to access our XMLRPC service (which uses php pear classes). I have a perl variable comming from some call of RT API that give me an utf-8 string out of the DB: $inter_desc. I want to send it to my webservice: my $result = XMLRPC::Lite -> proxy($RT::WsURL.'contracts.php') -> call('contracts.invoice', $login, $contract_id, $inter_id, $inter_index, $resolved_date, $time_worked, $inter_desc, $ticket_id) -> result; XMLRPC::Lite try to send the $inter_desc which contains the utf-8 string as base64 (why not ;)). On the XMLRPC server side, after base64 decoding, the string is ISO8859-1!!! After many testing, I discovered that an is_utf8 on $time_worked returns 1 for this code and 0 in another standalone script which works. So I tried adding: Encode::_utf8_off($inter_desc); before XMLRPC::Lite call. and now it works, the string on the server side is received as utf-8. I looked in SOAP::Lite code, and saw that the method as_base64 in SOAP/Lite.pm as some fix related to this. But in XMLRPC/Lite.pm, there is a dedicated as_base64 method (so the one from SOAP/Lite.pm is not used with XMLRPC) which don't have this fix. Is it a bit more understandable? ;)
Subject: Re: [rt.cpan.org #42915] XMLRPC::Lite miss _utf8_off if needed
Date: Sat, 31 Jan 2009 13:15:03 +0100
To: bug-SOAP-Lite [...] rt.cpan.org
From: Martin Kutter <martin.kutter [...] fen-net.de>
Yes, pretty clear :-) I'll change XMLRPC::Lite's behaviour to match SOAP::Lite...
Subject: Re: [rt.cpan.org #42915] XMLRPC::Lite miss _utf8_off if needed
Date: Sat, 31 Jan 2009 15:58:19 +0100
To: Martin Kutter via RT <bug-SOAP-Lite [...] rt.cpan.org>
From: Emmanuel Lacour <elacour [...] home-dn.net>
Download (untitled) / with headers
text/plain 180b
On Sat, Jan 31, 2009 at 08:36:27AM -0500, Martin Kutter via RT wrote: Show quoted text
> Yes, pretty clear :-) > > I'll change XMLRPC::Lite's behaviour to match SOAP::Lite... >
Nice, thanks :)


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.