summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild_db.plx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build_db.plx b/build_db.plx
index 40e5363..4ef65c5 100755
--- a/build_db.plx
+++ b/build_db.plx
@@ -249,6 +249,8 @@ for my $file (@file_list){
$statement =~ s/[,]$/\n/g;
# Specify this insertion is for $file only
+ # Encode to fix issues with non-ascii characters
+ utf8::encode($statement);
$statement = $statement . "WHERE PATH = \"$file\";";
#FIXME MCDI tag is binary. This should be considered and handled in a secondary file