Closed liudonghua123 closed 3 years ago
According to https://stackoverflow.com/questions/42070668/python-3-default-encoding-cp1252, https://stackoverflow.com/questions/49991870/python-default-string-encoding and so on, it's strongly recommended to use open(filename, encoding='utf-8') to read a file.
you are right, I add it, but with a switch for py2. will push later today.
According to https://stackoverflow.com/questions/42070668/python-3-default-encoding-cp1252, https://stackoverflow.com/questions/49991870/python-default-string-encoding and so on, it's strongly recommended to use open(filename, encoding='utf-8') to read a file.