Golan2072 / CLGen

Cepheus Light RPG character generator
7 stars 4 forks source link

open names files as utf-8 #1

Closed soypunk closed 4 years ago

soypunk commented 4 years ago

https://github.com/Golan2072/CLGen/blob/802d5d620ca74c823d54723e59a197138260f7cb/stellagama.py#L85

This line should probably be:

with open(filename, "r", encoding='utf-8', errors='ignore') as line_list:

Because the various names files have non-ascii characters in them and seem to be utf-8 encoded.

Golan2072 commented 4 years ago

Many thanks!

Golan2072 commented 4 years ago

Resolved in new commit.