pyinstaller打包exe执行无法读取txt

在python3环境下运行正常,但是用pyinstaller打包成exe后再运行,就出现类似UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0的错误。一直没有搜到解决办法。
代码就是普通的fn=open('文件路径','r'),然后fn.read()这一步就会出错。求大神指导!

"r" 换成 "rb" 试一下。