Reputation: 1826
I have an ajax POST request with some data being passed to the server side. This is all working nicely on all browsers, but in case I have some specific characters, it fails in IE9. For example, sending "John Smith" through POST works just fine, but if I try "Rafał Szukała" (please notice specific l letter) in IE9, the browser doesn't pass them properly so I end up with band server response. Mozilla's working fine with this string btw.
Any ideas how this can be solved?
Upvotes: 2
Views: 2795
Reputation: 1826
The solution which worked for me is pretty close to what Joseph Marikle mentioned, with some more details:
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
Upvotes: 1
Reputation: 78520
I see that you are using jquery by the tag on the question. Therefore, if this is a jQuery.ajax call you're making, you can specify the content type of the data with contentType
attribute. You would need a unicode type like UTF-8.
This then needs decoded correctly on the server side.
At least that's my best guess. :P
Upvotes: 1