#1995: expose('json') encodes, but does not set coding in Content-Type header
--------------------------+-------------------------------------------------
Reporter: PeterRussell | Owner: faide
Type: defect | Status: new
Priority: normal | Milestone: 1.1
Component: TurboGears | Version: 1.0.7
Severity: major | Keywords: unicode json expose
--------------------------+-------------------------------------------------
When using the expose decorator with the json template, non-ASCII
characters in Unicode strings appear to be encoded in utf-8 by default,
but the charset part of the Content-Type header doesn't reflect this.
Either the encoding should be specified in the headers, or all non-ascii
characters should be escaped with \uXXXX codes. A test case that should
support either of these modes of operation is attached.
--
Ticket URL: <http://trac.turbogears.org/ticket/1995>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---