From: Dobrica Pavlinusic Date: Fri, 1 Dec 2017 13:27:17 +0000 (+0100) Subject: upgrade cells to utf-8 in csv input X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=inline;h=16e725b08b4c08578585bcf652913d3445a3c49b;p=webpac2 upgrade cells to utf-8 in csv input --- diff --git a/lib/WebPAC/Input/CSV.pm b/lib/WebPAC/Input/CSV.pm index fc11be7..26dab49 100644 --- a/lib/WebPAC/Input/CSV.pm +++ b/lib/WebPAC/Input/CSV.pm @@ -75,7 +75,11 @@ sub new { } else { die "ERROR: $@ in line ",dump( $line ); } + } else { + utf8::upgrade( $cell ); + $str = $cell; } + $rec->{ $col++ } = $str; }