diff --git a/scripts/add-email-address.plx b/scripts/add-email-address.plx index 4947621..9dbd00a 100644 --- a/scripts/add-email-address.plx +++ b/scripts/add-email-address.plx @@ -7,6 +7,9 @@ use DBI; use Encode qw(encode decode); use Supporters; +binmode STDIN, ":utf8"; +binmode STDOUT, ":utf8"; + if (@ARGV != 1 and @ARGV !=2) { print STDERR "usage: $0 \n"; exit 1; diff --git a/scripts/add-postal-address.plx b/scripts/add-postal-address.plx index 1b904cf..72f04b8 100644 --- a/scripts/add-postal-address.plx +++ b/scripts/add-postal-address.plx @@ -7,6 +7,9 @@ use DBI; use Encode qw(encode decode); use Supporters; +binmode STDIN, ":utf8"; +binmode STDOUT, ":utf8"; + if (@ARGV != 1 and @ARGV !=2) { print STDERR "usage: $0 \n"; exit 1;