I'm redirecting the stdio of a server written in Python to a file:
python server.py &> file
The input is transmitted via a client.py which uses the XMLRPC library. If I transmit UTF-8 input, I get a UnicodeEncodeError before I can do anything.
The curiosity here is: If I don't redirect the stdoutput of the server.py, I don't get an error.
Locale is set to en_US.utf8, bash correctly displays unicode, the client encodes the text. I have not the slightest idea what is going on.