summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-09-24 20:38:06 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-09-24 20:38:06 +0200
commit78c56b0e41dfc0d38f4b8222b51704b28e145f2b (patch)
tree51b48b6580c1b5618b6c5b92b64ae4f2854a13be /bin/efa
parenta7c3ef13b069afd84ed610cc001d87f8e7bfd52b (diff)
Fixed length of unicode chars in printf (but now unicode in arguments doesn't work)
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index c7cc5d7..c46be10 100755
--- a/bin/efa
+++ b/bin/efa
@@ -3,6 +3,7 @@
## License: WTFPL <http://sam.zoy.org/wtfpl>
use strict;
use warnings;
+use encoding 'utf8';
use 5.010;
use Encode;
use Getopt::Long;
@@ -344,7 +345,7 @@ $www->submit_form(
$content = $www->content;
$content =~ s/\xa0/ /gs;
-$content = encode('utf-8', decode('iso-8859-1', $content));
+$content = decode('iso-8859-1', $content);
if (check_ambiguous($content)) {
exit 1;