Parcourir la source

fix chinese encoding (#411)

Jyong il y a 1 an
Parent
commit
36dc05c4da
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/core/data_source/notion.py

+ 1 - 1
api/core/data_source/notion.py

@@ -251,7 +251,7 @@ class NotionPageReader(BaseReader):
                 else:
                     value = property_value[type]
                 data[property_name] = value
-            database_content_list.append(json.dumps(data))
+            database_content_list.append(json.dumps(data, ensure_ascii=False))
 
         return "\n\n".join(database_content_list)