add utf8 support

This commit is contained in:
Bradley M. Kuhn 2022-06-21 10:15:00 -07:00
parent 96d75986f2
commit 284d5889b1

View file

@ -2,11 +2,15 @@
use strict; use strict;
use warnings; use warnings;
use utf8;
use DBI; use DBI;
use Encode qw(encode decode); use Encode qw(encode decode);
use Supporters; use Supporters;
binmode STDOUT, ":utf8";
binmode STDIN, ":utf8";
if (@ARGV != 1 and @ARGV !=2) { if (@ARGV != 1 and @ARGV !=2) {
print STDERR "usage: $0 <SUPPORTERS_SQLITE_DB_FILE> <VERBOSITY_LEVEL>\n"; print STDERR "usage: $0 <SUPPORTERS_SQLITE_DB_FILE> <VERBOSITY_LEVEL>\n";
exit 1; exit 1;