summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-06-05 20:43:40 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-06-05 20:43:40 +0200
commit27e5df980e8abcb513fc3d5d0b270c802beb5c41 (patch)
tree0460228d3c6f2e4bfbe2703e40f0c56fb696ad58 /bin/efa
parent32216d9cb83c0f78ae3f5d347b6a56d3b0ff8120 (diff)
Fix(?) UTF-8 issues with bin/efa. Nobody knows why it works.
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa5
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/efa b/bin/efa
index 6920403..a74c34d 100755
--- a/bin/efa
+++ b/bin/efa
@@ -4,10 +4,8 @@
## 0. You just DO WHAT THE FUCK YOU WANT TO.
use strict;
use warnings;
-use encoding 'utf8';
use 5.010;
-use Encode;
use Getopt::Long qw/:config no_ignore_case/;
use HTML::TreeBuilder::XPath;
use WWW::Mechanize;
@@ -308,9 +306,8 @@ else {
fields => \%post,
);
- $content = $www->content;
+ $content = $www->response()->decoded_content();
$content =~ s/\xa0/ /gs;
- $content = decode('iso-8859-1', $content);
}
if ($test_dump) {