Ticket #617 (closed defect: invalid)
jsonify needs charset
| Reported by: | Shannon -jj Behrens | Owned by: | bbangert |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.0 |
| Component: | helpers | Version: | 0.9.7 |
| Severity: | normal | Keywords: | |
| Cc: | jjinux@… |
Description
Looking at the jsonify decorator's source code, I see:
pylons.response.headers['Content-Type'] = 'application/json'
My experience has been that WebOb? freaks out and raises an exception if you don't set a charset:
pylons.response.headers['Content-Type'] = 'application/json; charset=utf-8'
Change History
Note: See
TracTickets for help on using
tickets.