Read and write UTF-8 in address scripts.

This commit is contained in:
Brett Smith 2017-01-11 12:27:25 -05:00
parent 22e02fb40e
commit 9655c13220
2 changed files with 6 additions and 0 deletions

View file

@ -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 <SUPPORTERS_SQLITE_DB_FILE> <VERBOSITY_LEVEL>\n";
exit 1;

View file

@ -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 <SUPPORTERS_SQLITE_DB_FILE> <VERBOSITY_LEVEL>\n";
exit 1;