projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d8c058
)
upgrade cells to utf-8 in csv input
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 1 Dec 2017 13:27:17 +0000
(14:27 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 1 Dec 2017 13:27:17 +0000
(14:27 +0100)
lib/WebPAC/Input/CSV.pm
patch
|
blob
|
history
diff --git
a/lib/WebPAC/Input/CSV.pm
b/lib/WebPAC/Input/CSV.pm
index
fc11be7
..
26dab49
100644
(file)
--- 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;
}