mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 14:02:29 +00:00
fix: encoding issue
This commit is contained in:
parent
6307adfba1
commit
3688955c77
@ -411,7 +411,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str):
|
||||
elif file_ext == "xml":
|
||||
loader = UnstructuredXMLLoader(file_path)
|
||||
elif file_ext in ["htm", "html"]:
|
||||
loader = BSHTMLLoader(file_path)
|
||||
loader = BSHTMLLoader(file_path, open_encoding="unicode_escape")
|
||||
elif file_ext == "md":
|
||||
loader = UnstructuredMarkdownLoader(file_path)
|
||||
elif file_content_type == "application/epub+zip":
|
||||
|
Loading…
Reference in New Issue
Block a user