From ded91e8fbfc13d0ab5be4f13d5b4eac879a4a0c3 Mon Sep 17 00:00:00 2001
From: "louis.heraut" <louis.heraut@inrae.fr>
Date: Mon, 22 Nov 2021 12:00:21 +0100
Subject: [PATCH] Minor change for encoding

---
 processing/extractBH.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/processing/extractBH.R b/processing/extractBH.R
index 9dfb800..93e21ef 100644
--- a/processing/extractBH.R
+++ b/processing/extractBH.R
@@ -168,7 +168,7 @@ extractBH_meta = function (computer_data_path, filedir, filename, verbose=TRUE)
     if (file.exists(file_path) & substr(file_path, nchar(file_path), nchar(file_path)) != '/') {
         
         # Extract all the header
-        metatxt = c(readLines(file_path, n=41, encoding="latin1"))
+        metatxt = c(readLines(file_path, n=41, encoding="UTF-8"))
         
         # Create a tibble with all the metadata needed
         df_meta =
-- 
GitLab