Skip to main content

Bug Tracker

Side navigation

#10953 closed bug (duplicate)

Opened December 05, 2011 07:33PM UTC

Closed December 06, 2011 11:53AM UTC

Last modified December 06, 2011 11:53AM UTC

AJAX default contentType should include the charset

Reported by: rodrigo.rosenfeld Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:
Description

Tomcat (6, at least) uses ISO-8859-1 as default charset, when not specified. So, jQuery should specify the charset too in the contentType. Since it is encoding the content in UTF-8, the default content-type should be "application/x-www-form-urlencoded; charset=UTF-8".

I had real problems with the current defaults, Chrome and Tomcat 6.

I couldn't reopen ticket #4624, so I'm opening this one.

Attachments (0)
Change History (2)

Changed December 06, 2011 11:53AM UTC by addyosmani comment:1

resolution: → duplicate
status: newclosed

I've reopened the other ticket for review. Closing this one as a dupe.

Changed December 06, 2011 11:53AM UTC by addyosmani comment:2

Duplicate of #4624.