jgilchrist / pybib

Get BibTeX citations from your terminal
BSD 3-Clause "New" or "Revised" License
26 stars 2 forks source link

Fix UnicodeEncodeError when using Python 2.7 #4

Closed ap-- closed 7 years ago

ap-- commented 7 years ago

Hi jgilchrist,

This workaround fixes an encoding issue I ran into when trying to use pybib with Python 2.7. If text contains non-ascii characters Python 2.7 throws a UnicodeEncodeError and pybib won't work. It might not be the most elegant way to fix this issue, but it does the job :)

All the best, -Andreas

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.4%) to 78.808% when pulling 59a0be5f96e559206ec6c3abf2b30ec4b6cca852 on ap--:master into e6f43f15a1f42cb077edcf17add4cfd2f62bf0ef on jgilchrist:master.

jgilchrist commented 7 years ago

Hey @ap--, thanks so much for the pull request! It looks like this will fix #3 too.

jgilchrist commented 7 years ago

Released in v2.2.2. Thanks again!