From d3b3e2317c9a2286613aa7563f854be7965fab20 Mon Sep 17 00:00:00 2001 From: Josef Haupt Date: Thu, 24 Oct 2024 16:26:09 +0200 Subject: [PATCH] add utf-8 (#482) Co-authored-by: Josef Haupt --- birdnet_analyzer/gui/single_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdnet_analyzer/gui/single_file.py b/birdnet_analyzer/gui/single_file.py index 99261ea9..cfe040d8 100644 --- a/birdnet_analyzer/gui/single_file.py +++ b/birdnet_analyzer/gui/single_file.py @@ -56,7 +56,7 @@ def runSingleFileAnalysis( ) # read the result file to return the data to be displayed. - with open(result_filepath, "r") as f: + with open(result_filepath, "r", encoding="utf-8") as f: reader = csv.reader(f) data = list(reader) data = [l[0:-1] for l in data[1:]] # remove last column (file path) and first row (header)