Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with UTF-8 candidate names #1

Open
yannis1962 opened this issue Aug 10, 2017 · 0 comments
Open

Problem with UTF-8 candidate names #1

yannis1962 opened this issue Aug 10, 2017 · 0 comments

Comments

@yannis1962
Copy link

yannis1962 commented Aug 10, 2017

I wrote a small program using schulze.compute_ranks, taking care of the header (-*- coding: utf-8 -*-) and writing into the output file using codecs.open("resultat.txt","w","utf-8"). I attach this file. In the output file, instead of UTF-8 data I get explicit bytes (as in u'r\xc3\xa9flexion/n:pens\xc3\xa9e/n' instead of u'réflexion/n:pensée/n'). Can this be fixed? Thanks in advance

compare-rankings.py.pdf
resultat.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant