Skip Menu |

This queue is for tickets about the WP-API CPAN distribution.

Report information
The Basics
Id: 102552
Status: open
Priority: 0/
Queue: WP-API

People
Owner: Nobody in particular
Requestors: christian [...] solvare.se
Cc:
AdminCc:

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



Subject: Wide characters make MIME::Base64 die
Date: Fri, 06 Mar 2015 20:04:29 +0100
To: bug-WP-API [...] rt.cpan.org
From: Christian Huldt <christian [...] solvare.se>
Unless I'm doing something stupid (which is very likely) it seems a little bit odd that SOAP::Lite is trying to encode both content and title using MIME::Base64 which doesn't like "wide characters" when they works fine in wordpress and browsers... Am I missing something? Like understanding? -- Christian Huldt
Download signature.asc
application/pgp-signature 473b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #102552] AutoReply: Wide characters make MIME::Base64 die
Date: Sat, 07 Mar 2015 12:42:58 +0100
To: bug-WP-API [...] rt.cpan.org
From: Christian Huldt <christian [...] solvare.se>
After some further digging it seems that all choices of encoding are left to SOAP::Lite, so this is not your bug?
Download signature.asc
application/pgp-signature 473b

Message body not shown because it is not plain text.

On Sat Mar 07 06:43:54 2015, christian@solvare.se wrote: Show quoted text
> After some further digging it seems that all choices of encoding are > left to SOAP::Lite, so this is not your bug?
I honestly have no idea. SOAP::Lite is such a big and complex code base, I've tried to avoid looking at it. I haven't noticed any problems like you just mentioned but maybe I just missed the warnings.
Subject: Re: [rt.cpan.org #102552] Wide characters make MIME::Base64 die
Date: Sun, 08 Mar 2015 13:55:15 +0100
To: bug-WP-API [...] rt.cpan.org
From: Christian Huldt <christian [...] solvare.se>
2015-03-07 22:19, Dave Rolsky via RT skrev: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=102552 > > > On Sat Mar 07 06:43:54 2015, christian@solvare.se wrote:
>> After some further digging it seems that all choices of encoding are >> left to SOAP::Lite, so this is not your bug?
> > I honestly have no idea. SOAP::Lite is such a big and complex code base, I've tried to avoid looking at it. I haven't noticed any problems like you just mentioned but maybe I just missed the warnings.
That I can understand, but it seems it is not a bug but a failure on my part to read the docs... [1], namely, I need to do $content = SOAP::Data->type(string => $content); to make $content be encoded as a string and not base64 (as the base64 encoding is done by MIME::Base64 which only support ASCII input). I'm sorry for the noise, but perhaps it may help someone else in the future... For the record, HTML::Entities may also be used: $content = decode_entities($content); $content = encode_entities($content, '^\n\x20-\x25\x27-\x7e'); [1] http://cookbook.soaplite.com/#internationalization%20and%20encoding , at 2. use UTF-8 encoding
Download signature.asc
application/pgp-signature 473b

Message body not shown because it is not plain text.