XVs32 / kcauto_custom

kcauto_custom, the successor to kcauto, a Kantai Collection (Kancolle) bot / automation tool
https://xvs32.github.io/kcauto_custom/
GNU General Public License v3.0
9 stars 2 forks source link

UnicodeEncodeError fix #55

Closed XVs32 closed 1 year ago

XVs32 commented 1 year ago

*Force file open to use utf-8 to avoid encoding issue on windows

XVs32 commented 1 year ago

For testing, I will somehow have to find a way to reproduce a windows env with default encoding other than utf. ascii should do the trick.

XVs32 commented 1 year ago

image

Managed to reproduce the problem, and adding the utf-8 in open does work.

image