[Bps-public-commit] r19719 - Net-Google-Code/trunk/lib/Net/Google/Code/Issue

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue May 19 03:06:26 EDT 2009


Author: sunnavy
Date: Tue May 19 03:06:26 2009
New Revision: 19719

Modified:
   Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Search.pm

Log:
decode the response's content in issue search

Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Search.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Search.pm	(original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Issue/Search.pm	Tue May 19 03:06:26 2009
@@ -6,6 +6,7 @@
   'Net::Google::Code::Role::Fetchable', 'Net::Google::Code::Role::Pageable',
   'Net::Google::Code::Role::HTMLTree';
 use Net::Google::Code::Issue;
+use Encode;
 
 has 'project' => (
     isa      => 'Str',
@@ -80,7 +81,7 @@
     die "Server threw an error " . $mech->response->status_line . 'when search'
       unless $mech->response->is_success;
 
-    my $content = $mech->response->content;
+    my $content = decode( 'utf8', $mech->response->content );
 
     if ( $mech->title =~ /issue\s+(\d+)/i ) {
 



More information about the Bps-public-commit mailing list