Impruve quality of encoding.
Today I met one user-agent that understand just one encoding (Accept-Charset: windows-1251), and as result it received 406 error code from my App.
After some digging into possible solutions I come to following:
[global] tools.encode.on = True tools.encode.encoding = None tools.encode.errors = 'replace'
But it have one serious defect - first codepage it try to convert to is iso-8859-1. So it have made serious impact on cyrillic text. I try to find better way to process encodings in this situation. See patch.