Closed northword closed 2 years ago
For what it's worth, this would've already been working fine in Python 3 on most Linux/Mac systems.
If you're using Windows, you may need to enable Python UTF-8 mode, but I would recommend doing that anyway.
No harm in making this more explicit, though, so I've merged this. Thanks!
When a csl file contains gbk characters, for example, china-national-standard-gb-t-7714-2015-numeric.csl, the following error will be reported when the file is opened without specifying the encoding.
The script should work fine with this commit modification, for example, suffix of the year data-part
年
will be converted to\u5e74
as shown in the figure below.