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

Unicode: charmap error for unicode characters when used in doxygen #54

Open
cfrings opened this issue Mar 6, 2018 · 0 comments
Open

Comments

@cfrings
Copy link

cfrings commented Mar 6, 2018

In Windows, non-ascii unicode characters raise

UnicodeEncodeError: 'charmap' codec can't encode characters in position 8257-8259: character maps to 

Finding inspiration here: https://stackoverflow.com/a/30673656, I've replaced

print(astWalker.getLines())

with

import sys, io
default_out = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
print(astWalker.getLines()), file=default_out)

as a workaround. Not sure this is the best thing to do, but it works.

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