This is not an issue of unicodeit, but people may meet it when using unicodeit. Therefore I think it's worth mentioning here.
> py -c 'print("\N{GREEK SMALL LETTER ALPHA}")'
α
> py -c 'print("\N{GREEK SMALL LETTER ALPHA}")' | echo # or Write-Output
��
If the default encoding of Windows is not UTF-8 (say, GBK) and you've changed the shell encoding (as the following), you may meet UnicodeEncodeError when piping strings in PowerShell.
If the default encoding of Windows is not UTF-8 (say, GBK) and you've changed the shell encoding (as the following), you may meet
UnicodeEncodeError
when piping strings in PowerShell.To fix it, enable Python UTF-8 mode by command line option
-X utf8
or environment variablePYTHONUTF8
.