diff --git a/custom_syadmin/build_from_notion.py b/custom_syadmin/build_from_notion.py index 20f6cc2..912e1ab 100644 --- a/custom_syadmin/build_from_notion.py +++ b/custom_syadmin/build_from_notion.py @@ -113,7 +113,7 @@ def get_record_text(post): text += "---" else: prefix = prefixes.get(child.type, "") - text += prefix + str(child.title.encode('utf-8')) + "\n\n" + text += prefix + child.title.encode('utf-8').decode('utf-8') + "\n\n" text = re.sub('`bib:([a-zA-Z0-9-]+)`', r'![](bib:\1)', text) return text