Menu

#55 UnicodeEncodeError

closed-fixed
nobody
None
trunk
2014-03-15
2014-03-05
Janusz
No

Both

pybtex jlm-bibexample.aux

and

pybtex -e utf8 jlm-bibexample.aux

give

UnicodeEncodeError: 'ascii' codec can't encode character u'\u015b' in position 0: ordinal not in range(128)

The aux file is created with XeLaTeX and contains in particular

\bibcite{świdziński13:_test}{{4}{2013}{{Świdziński}}{{}}}

Bug or feature?

Best regards

Janusz

Discussion

  • Densetsu no Ero-Sennin

    Can you please post the full traceback and attach the whole jlm-bibexample.aux file and the .bib file you are using so I could reproduce the erorr?

    Also, what version are you using? (pybtex --version)

     
  • Janusz

    Janusz - 2014-03-14

    pybtex-0.15

    The database is missing some references, but it should not crash the program.

    Actually I switched to biblatex/biber, but I post the requested files in hope it may help other pybtex users.

     
  • Densetsu no Ero-Sennin

    Thanks Janusz,

    Actually you forgot to include the .bib file, but I believe this bug has been already fixed in recent versions. Could you please try pybtex-0.17 and see if it works?

     
  • Janusz

    Janusz - 2014-03-15

    Only pybtex-0.15 is available on Debian, even in testing and unstable distribution. Somebody should make a request to update it.

    As I said earlier, I switched to biblatex/biber, so I have no motivation to do it myself.

     
  • Densetsu no Ero-Sennin

    • status: open --> closed-fixed
    • Version: --> trunk
     
  • Densetsu no Ero-Sennin

    OK, closing this bug then.