[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm
foxr
foxr at source.lon-capa.org
Fri Aug 3 06:55:53 EDT 2012
foxr Fri Aug 3 10:55:53 2012 EDT
Modified files:
/loncom/lonnet/perl lonnet.pm
Log:
Ensure, if necessary, resources are internally represented as UTF-8
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1181 loncom/lonnet/perl/lonnet.pm:1.1182
--- loncom/lonnet/perl/lonnet.pm:1.1181 Sat Jul 21 21:20:12 2012
+++ loncom/lonnet/perl/lonnet.pm Fri Aug 3 10:55:53 2012
@@ -1,7 +1,7 @@
# The LearningOnline Network
# TCP networking package
#
-# $Id: lonnet.pm,v 1.1181 2012/07/21 21:20:12 raeburn Exp $
+# $Id: lonnet.pm,v 1.1182 2012/08/03 10:55:53 foxr Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -75,6 +75,7 @@
use HTTP::Date;
use Image::Magick;
+
use Encode;
use vars qw(%perlvar %spareid %pr %prp $memcache %packagetab $tmpdir
@@ -2585,7 +2586,9 @@
$request->header(Cookie => $ENV{'HTTP_COOKIE'});
my $response= $ua->request($request);
- my $content = Encode::decode_utf8($response->content);
+ my $content = $response->content;
+
+
if (wantarray) {
return ($content, $response);
} else {
More information about the LON-CAPA-cvs
mailing list