Subject: | Unicode symbols in payment description |
Business::PayPal::NVP dies if payment description contains unicode
symbols. This could be fixed with uri_escape_utf8, patch attached.
Subject: | paypal-nvp.utf8.patch |
diff --git a/lib/Business/PayPal/NVP.pm b/lib/Business/PayPal/NVP.pm
index 8c8e2be..98ad618 100644
--- a/lib/Business/PayPal/NVP.pm
+++ b/lib/Business/PayPal/NVP.pm
@@ -96,7 +96,7 @@ sub _build_content {
my @args = ();
for my $key ( keys %args ) {
$args{$key} = ( defined $args{$key} ? $args{$key} : '' );
- push @args, URI::Escape::uri_escape($key) . '=' . URI::Escape::uri_escape($args{$key});
+ push @args, URI::Escape::uri_escape($key) . '=' . URI::Escape::uri_escape_utf8($args{$key});
}
return join('&', @args) || '';