Skip Menu |

This queue is for tickets about the WWW-Mailchimp CPAN distribution.

Report information
The Basics
Id: 94801
Status: resolved
Priority: 0/
Queue: WWW-Mailchimp

People
Owner: Nobody in particular
Requestors: gregg.casillo [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.009
Fixed in:
  • 0.009_01
  • 0.010



Subject: Use uri_escape_utf8() vs. uri_escape() in order to handle Unicode?
Date: Wed, 16 Apr 2014 08:43:07 -0400
To: bug-WWW-Mailchimp [...] rt.cpan.org
From: Gregg Casillo <gregg.casillo [...] gmail.com>
Thanks for contributing the WWW::Mailchimp module to the Perl community. I'm using it for my employer, and we deal with a lot of international news and currencies. As such, we're dependent on Unicode for things like euro signs (U+20AC) and more. However, on line 176 of the WWW::Mailchimp module, you use uri_escape(). When I run my script that employs WWW::Mailchimp, it reports an error whenever I pass it a string with a Unicode character: "Can't escape \x{20AC}, try uri_escape_utf8() instead at <path to my Strawberry Perl installation>" I took a chance on revising line 176 to use uri_escape_utf8() instead, and it appears to be working for me. I'm not sure this is a viable solution for others. I am using Strawberry Perl 5.10.0 on a Windows 2000 Server (yes, you read that right), but we're in the midst of an upgrade to later versions on newer hardware. Again, thanks for developing this module, and I hope this report is of use to you and users of this module. Thanks, Gregg Casillo