Skip to content

Commit

Permalink
Update file_operation.py (#398)
Browse files Browse the repository at this point in the history
* Update file_operation.py

* Update file_operation.py
  • Loading branch information
Jonnysunn authored Oct 23, 2024
1 parent 8e5a294 commit 07eee9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion huixiangdou/primitive/file_operation.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def read(self, filepath: str):
try:

if file_type == 'md' or file_type == 'text':
with open(filepath) as f:
with open(filepath,encoding = 'utf-8') as f:
text = f.read()

elif file_type == 'pdf':
Expand Down

0 comments on commit 07eee9d

Please sign in to comment.