Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #164 (closed defect: fixed)

Opened 14 years ago

Last modified 12 years ago

decodingFilter should be enabled by default

Reported by: jonathan-lists@… Owned by: anonymous
Priority: normal Milestone: 0.9a2
Component: TurboGears Version: 0.8
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.

Change History

comment:1 Changed 13 years ago by kevin

  • Milestone changed from 0.9 to 0.9a2

comment:2 Changed 13 years ago by kevin

  • Status changed from new to closed
  • Resolution set to fixed

Done in [993].

Note: See TracTickets for help on using tickets.