From 78c56b0e41dfc0d38f4b8222b51704b28e145f2b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 24 Sep 2009 20:38:06 +0200 Subject: Fixed length of unicode chars in printf (but now unicode in arguments doesn't work) --- bin/efa | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/efa b/bin/efa index c7cc5d7..c46be10 100755 --- a/bin/efa +++ b/bin/efa @@ -3,6 +3,7 @@ ## License: 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; -- cgit v1.2.3