[Bps-public-commit] r20037 - Net-Google-Code/trunk/lib/Net/Google/Code/Role
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Jun 22 21:00:20 EDT 2009
Author: sunnavy
Date: Mon Jun 22 21:00:18 2009
New Revision: 20037
Modified:
Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm
Log:
tweak the decode utf8 stuff when fetching
Modified: Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm
==============================================================================
--- Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm (original)
+++ Net-Google-Code/trunk/lib/Net/Google/Code/Role/Fetchable.pm Mon Jun 22 21:00:18 2009
@@ -32,7 +32,7 @@
my $content = $self->mech->content;
# auto decode the content to erase HTML::Parser's utf8 warning like this:
# Parsing of undecoded UTF-8 will give garbage when decoding entities
- eval { $content = decode( 'utf8', $content, Encode::FB_QUIET) };
+ utf8::downgrade( $content, 1 );
return $content;
}
}
More information about the Bps-public-commit
mailing list