summaryrefslogtreecommitdiff
path: root/build_db.plx
diff options
context:
space:
mode:
authorlshprung <lshprung@yahoo.com>2021-09-09 18:07:22 -0700
committerlshprung <lshprung@yahoo.com>2021-09-09 18:07:22 -0700
commit175ecce690b06de2053ff60aa1d1ad84bd72e724 (patch)
tree15ce8a5fa9ea5c5e17d5772b0a6410d78f92238d /build_db.plx
parent39be83cf14e6affa6c4c2f978761182afb04b1b9 (diff)
Fixed encoding issue for utf8 character sets
Diffstat (limited to 'build_db.plx')
-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