Convert Usevote to UTF-8.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2026-02-08 15:06:05 +01:00
parent 162c5aefda
commit a60ea76fe8
8 changed files with 31 additions and 7 deletions

View file

@ -21,6 +21,8 @@
# written in C). Not all functions of Usevote/UseVoteGer 3.x are implemented!
###############################################################################
use utf8;
use open qw(:std :utf8);
use strict;
use Getopt::Long;
use Text::Wrap qw(wrap $columns);
@ -330,6 +332,7 @@ sub process_vote {
$voter_name = $3;
$voter_name =~ s/^\s+//; # strip leading spaces
$voter_name =~ s/\s+$//; # strip trailing spaces
utf8::decode($voter_name); # fix double encoding
}
if ($voter_name) {