Bug Tracker

Modify

Ticket #4746 (closed bug: duplicate)

Opened 4 years ago

Last modified 15 months ago

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

comment:1 Changed 4 years ago by dmethvin

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

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate
  • Component changed from unfiled to ajax

I will assume this is a dup of #3611.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.