tags 476047 + patch, pending, upstream thanks The attached patch fixes this, but I want to run it past upstream before I upload.
Ian. -- Ian Beckwith - [EMAIL PROTECTED] - http://erislabs.net/ianb/ GPG fingerprint: AF6C C0F1 1E74 424B BCD5 4814 40EC C154 A8BA C1EA Listening to: Cranes - Future Songs - In the Reeds
diff --git a/lib/WWW/OpenSearch/Url.pm b/lib/WWW/OpenSearch/Url.pm index 7c04b82..6a66428 100644 --- a/lib/WWW/OpenSearch/Url.pm +++ b/lib/WWW/OpenSearch/Url.pm @@ -6,6 +6,7 @@ use warnings; use base qw( Class::Accessor::Fast ); use URI::Template; +use Encode; __PACKAGE__->mk_accessors( qw( type template method params ns ) ); @@ -89,7 +90,9 @@ sub prepare_query { if ( $self->method eq 'post' ) { my $post = $self->params; for my $key ( keys %$post ) { + Encode::_utf8_off($key); $post->{ $key } =~ s/{(.+)}/$params->{ $1 } || ''/eg; + Encode::_utf8_off($post->{$key}); } return $url, [ %$post ];