davidswelt / zot_bib_web

Create interactive web bibliographies based on Zotero collections
163 stars 19 forks source link

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' #5

Closed Picaut closed 7 years ago

Picaut commented 7 years ago

Your script seems very interesting and useful. However, I have an error when running it:

File "xxxxxxxx\zot_bib_web\zot.py", line 579, in sortkeyname return SortAndValue(".".join([str(sortkeyname(field, value2).sort) for value2 in value]), sortkeyname(field, value[-1]).value) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 43: ordinal not in range(128)

It may due to characters with accent in the name of the collection. Do you have a patch for this error?

davidswelt commented 7 years ago

Ok, could you please send me your settings file?

On May 24, 2017, 10:30 -0400, PICAUT Judicael notifications@github.com, wrote:

Your script seems very interesting and useful. However, I have an error when running it:

File "xxxxxxxx\zot_bib_web\zot.py", line 579, in sortkeyname return SortAndValue(".".join([str(sortkeyname(field, value2).sort) for value2 in value]), sortkeyname(field, value[-1]).value) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 43: ordinal not in range(128)

It may due to characters with accent in the name of the collection. Do you have a patch for this error?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub (https://github.com/davidswelt/zot_bib_web/issues/5), or mute the thread (https://github.com/notifications/unsubscribe-auth/AABmLQ0asxNbCXPBNNwx9P8MzGCZYiOsks5r9D8OgaJpZM4NlMbO).

Picaut commented 7 years ago

OK, I send you the file by email.

davidswelt commented 7 years ago

Thank you for reporting this. Please try the change I just pushed and let me know if it works for you.

On May 24, 2017, at 10:57 AM, PICAUT Judicael notifications@github.com wrote:

OK, I send you the file by email.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Picaut commented 7 years ago

It seems good. Thank you very much for your very nice tool.

davidswelt commented 7 years ago

You’re welcome. If you end up publishing the bibliography somewhere, would you mind sharing the link so I can include it as an example?

On May 24, 2017, at 2:53 PM, PICAUT Judicael notifications@github.com wrote:

It seems good. Thank you very much for your very nice tool.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.