Transforms complex documents like PDFs and Office docs into LLM-ready markdown/JSON for your Agentic workflows.
Python ai4sciencedocument-analysisdocxextract-datalayout-analysisocrparserpdfpdf-converterpdf-extractor-llmpdf-extractor-pretrainpdf-extractor-ragpdf-parserpptxpythonxlsx
fix(config_reader): add utf-8 encoding when reading config file
myhlolid244a1c1a7de
diff --git a/magic_pdf/libs/config_reader.py b/magic_pdf/libs/config_reader.pyindex 0978ac64..7454c577 100644--- a/magic_pdf/libs/config_reader.py+++ b/magic_pdf/libs/config_reader.py@@ -22,7 +22,7 @@ def read_config():if not os.path.exists(config_file):raise FileNotFoundError(f"{config_file} not found")- with open(config_file, "r") as f:+ with open(config_file, "r", encoding="utf-8") as f:config = json.load(f)return config