Ticket #164 (closed defect: fixed)
decodingFilter should be enabled by default
|Reported by:||jonathan-lists@…||Owned by:||anonymous|
|Severity:||normal||Keywords:||unicode ascii encoding filter|
The CherryPy? decodeFilter isn't enabled by default in TurboGears? This gave me fits on a project recently, and once I found the solution, I was puzzled why this isn't on by default. Kid assumes UTF-8, and most browsers submit UTF-8, so it seems like this should be on in the [global] section as follows:
decodingFilter.on = True decodingFilter.encoding = "utf8"
It solves a host of problems that manifest themselves with odd encoding errors, malformed strings stored in the database, and other odd problems.