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

Encode unicode with the utf-8 codec #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greg0ire
Copy link

@greg0ire greg0ire commented Jun 8, 2019

The ascii codec is not able to encode characters such as 💩

Fixes #26

See https://stackoverflow.com/a/9942822/353612 and
https://docs.python.org/2.7/howto/unicode.html

I discovered your lib through my use of yadm, where it is used to allow using jinja inside any dotfile. I use it because I need this to have several i3wm, one for home and one for work: https://github.com/greg0ire/dotfiles/blob/200a1753c41f6684e7aff032949839e957c1761b/.i3/config%23%23yadm.j2#L96-L104

But it crashes as soon as I use non-ASCII chars, and I would like to. Please merge this and release a new version 🙏

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

Successfully merging this pull request may close these issues.

Unicode stdout output is broken again
1 participant