Modify ↓
Ticket #4746 (closed bug: duplicate)
Wrong encoding for URL when using AJAX load functions in Internet Explorer
| Reported by: | XWisdom | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.4 |
| Component: | ajax | Version: | 1.3.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
When using the AJAX functions in jQuery (e.g. $.load(), $.get etc.) and if the url contains special characters like the Swedish "åäö", then it get converted to the wrong encoding before sending to the server. This only happens in Internet Explorer. My workaround is:
if ($.browser.msie) {
sUrl = encodeURIComponent(sUrl); sUrl = sUrl.replace(/%2F/g, '/');
}
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.
Note: See
TracTickets for help on using
tickets.

I think this may be a dup of #3611. Can you tell me the page encoding that you are using?