oh-my-stars icon indicating copy to clipboard operation
oh-my-stars copied to clipboard

Unicode issues with file redirecton

Open jhermann opened this issue 7 years ago • 1 comments

$ mystars --version
mystars 1.4.9
$ mystars schnack 2>&1 >/dev/null | tail -n1
UnicodeEncodeError: 'ascii' codec can't encode characters in position 5-6: ordinal not in range(128)

In a Python 2.7.12 virtualenv.

jhermann avatar Feb 22 '18 16:02 jhermann

Latest version?

try this:

$ export PYTHONIOENCODING=UTF-8

wolfg1969 avatar Feb 25 '18 09:02 wolfg1969