From b2ff9f601973a92bcc9f8e930131b25e02df985e Mon Sep 17 00:00:00 2001 From: Jeffrey Martin Date: Wed, 24 Apr 2024 14:58:58 -0500 Subject: [PATCH] set encoding for resource file read Signed-off-by: Jeffrey Martin --- garak/probes/leakreplay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/garak/probes/leakreplay.py b/garak/probes/leakreplay.py index a757be037..04a318ee9 100644 --- a/garak/probes/leakreplay.py +++ b/garak/probes/leakreplay.py @@ -51,7 +51,7 @@ def __init__(self): """ self.prompts = [] self.triggers = [] - with open(resources / self.source_file) as f: + with open(resources / self.source_file, encoding="utf-8") as f: r = csv.reader(f, delimiter="\t") for row in r: if len(row) != 2: