From 43416fc9a2aa76fd719321f38edb15f9c95604f0 Mon Sep 17 00:00:00 2001 From: David Warshawsky Date: Sun, 9 Feb 2025 23:45:58 +0200 Subject: [PATCH] We don't all speak english --- src/gitingest/query_ingestion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitingest/query_ingestion.py b/src/gitingest/query_ingestion.py index 5f0cddb2..b912ee54 100644 --- a/src/gitingest/query_ingestion.py +++ b/src/gitingest/query_ingestion.py @@ -69,7 +69,7 @@ def _get_encoding_list() -> list[str]: List of encoding names to try in priority order, starting with the platform's default encoding followed by common fallback encodings. """ - encodings = ["utf-8", "utf-8-sig"] + encodings = ["utf-8", "utf-8-sig", "latin"] if platform.system() == "Windows": encodings.extend(["cp1252", "iso-8859-1"]) return encodings + [locale.getpreferredencoding()]