Why I get this symbol � instead of ąčęėįš. I pass parameter via Ajax. On chrome works fine, but on IE its not working.
Ajax:
var comment = document.getElementById("commentstext").value;
$.ajax({
type: "get",
dataType: "json",
contentType: 'charset=utf-8',
url: url,
data: "state=false&comment=" + comment
});
api:
[DnnAuthorize()]
[HttpGet]
[ActionName("insert")]
public void InsertRecord(bool state, string comment)
{
...
}
url: http://.../API/Rate/insert?state=false&comment=ąčęąčę
IE version: 11 and 9
Chrome version: 33 and 46
Now I cann't test other browser
Its work after i add this: comment = encodeURIComponent(comment);