Message 249145 - Python tracker
The behavior of programs definitely differs if stdout is redirected. For example on linux a program might output color codes to stdout normally, but if it is redirected to a non-tty, no color codes would be output. Windows console handling of unicode is an entirely separate problem for which there are open issues and some possible solutions being worked on.