Skip to content

Commit 184a7cc

Browse files
committed
Handle UTF-8 text file encoding on Windows.
1 parent 48661d2 commit 184a7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slip39/gui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def app(
862862
txt_name = '-'.join( [ 'SLIP', '39' ] + txt_segs[:txt_i] ) + '.txt'
863863
txt_path = os.path.join( os.path.dirname( __file__ ), txt_name )
864864
try:
865-
with open( txt_path, 'r' ) as txt_f:
865+
with open( txt_path, 'r', encoding='utf-8' ) as txt_f:
866866
txt = txt_f.read()
867867
if txt:
868868
instructions = txt

0 commit comments

Comments
 (0)