Ticket #5324 (closed bug: invalid)
Problem with special characters using AJAX
| Reported by: | bluecat76 | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | ajax | Version: | 1.3.2 |
| Keywords: | ajax special characters ie | Cc: | |
| Blocking: | Blocked by: |
Description
I have setup a search suggestion and am observing following problem:
Special characters (in this case german umlaut äöü) are NOT included in Ajax calls ($.get or $.getJSON) in Internet Explorer.
Example:
1.) The query reads "search_suggestion.asp?query=süd" when output via alert or similar.
2.) Logging on the Webserver yields:
Request from Firefox(3, 3.5): search_suggestion.asp query=s%C3%BCd Request from IE (6, 7, 8): search_suggestion.asp query=sd
All encoding is in UTF-8. Maybe some AJAX-related function in jQuery removes special characters from the query? Please let me know, if you need more information on this.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

Please ignore/close this bug, it is not jQuery related!
I was using the escape function and now learned, that this can NOT escape utf-8 chars! Using encodeURIComponent now, which works.