From c95ab15268a5c1313c61de763a286ad86b574191 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Thu, 1 Apr 2021 09:02:53 +0100 Subject: [PATCH] Support - Ensure advisors_checks-file is properly encoded (#3823) --- moto/utilities/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moto/utilities/utils.py b/moto/utilities/utils.py index 58e493ba4..01d20e47e 100644 --- a/moto/utilities/utils.py +++ b/moto/utilities/utils.py @@ -19,4 +19,4 @@ def load_resource(filename): load_resource(resource_filename(__name__, "resources/file.json")) """ with open(filename, "r") as f: - return json.load(f) + return json.load(f, encoding="utf-8")