Hey

If i want to get JSON-Data from an RestEndpoint, i need to declare the
content-type (including the charset) for my response ("Content-Type:
application/json; charset=utf-8"). Otherwise the data would be
displayed wrong on my utf-8 based JS-Client.

With the actual defaultCharset property in the config-xml, i do not
set this charset attribute in the Content-Type-HTTP-Header value, but
only the encoding of the header value itself (http://help.adobe.com/
en_US/ColdFusion/9.0/CFMLRef/
WSc3ff6d0ea77859461172e0811cbec22c24-7aea.html).

Do you have any suggestions, what's best practice to set the charset
attribute in the HTTP-Header-Value called "Content-Type"?

Cheers,

delijah

-- 
Come see Team Mach-II at OpenCFSummit - Feb 21-23, Dallas, TX - 
http://www.opencfsummit.org/

To post to this group, send email to [email protected]
For more options and to unsubscribe, visit this group at 
http://groups.google.com/group/mach-ii-for-coldfusion?hl=en

SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Reply via email to