diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-24 20:38:06 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-24 20:38:06 +0200 |
commit | 78c56b0e41dfc0d38f4b8222b51704b28e145f2b (patch) | |
tree | 51b48b6580c1b5618b6c5b92b64ae4f2854a13be /bin | |
parent | a7c3ef13b069afd84ed610cc001d87f8e7bfd52b (diff) |
Fixed length of unicode chars in printf (but now unicode in arguments doesn't work)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |