Skip to content

Commit

Permalink
Merge pull request #81 from sanskar-mk2/fix-encoding
Browse files Browse the repository at this point in the history
fix UnicodeDecodeError: 'charmap' codec can't decode byte
  • Loading branch information
abdeladim-s committed Nov 10, 2023
2 parents a6403a6 + 8150061 commit 01ca330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subsai/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def webui() -> None:
exported_file = media_file.parent / (export_filename + export_format)
subs.save(exported_file, fps=fps)
st.success(f'Exported file to {exported_file}', icon="✅")
with open(exported_file, 'r') as f:
with open(exported_file, 'r', encoding='utf-8') as f:
st.download_button('Download', f, file_name=export_filename + export_format)

with st.expander('Merge subtitles with video'):
Expand Down

0 comments on commit 01ca330

Please sign in to comment.