diff --git a/src/pynball/pynball.py b/src/pynball/pynball.py index 5eb55f2..90794f4 100644 --- a/src/pynball/pynball.py +++ b/src/pynball/pynball.py @@ -786,9 +786,10 @@ def glob_to_re(glob_list: list) -> str: elif old_name in str(file) and file.stem not in ignore_dirs: dir_name_change.append(file) + # TODO: find a solution to possible encoding issues here # replace text inside files for file in file_search: - text = file.read_text() + text = file.read_text(encoding="utf-8", errors="ignore") text = text.replace(old_name, new_name) file.write_text(text)