My problem is not too hard but really annoying.
I’m sending values to Generic Handler via Ajax like that way.
xmlHttpReq.open("GET", "AddMessage.ashx?" + (new Date().getTime()) +"&Message=" + Message,true);
when message contains İ,ç,ö,ğ,ü,ı they are looking like that on Handler �������
In context.Request.RawURL İ,ç,ö,ğ,ü,ı these characters are looking as it should. But in context.Request.Url they are looking like ������� and when i want QueryString values it gives me ������� what can i do?
A couple of things to check:
In
web.configyou’ve set UTF-8:You’ve a proper meta tag in your HTML page:
All your
.aspx,.ascx,.master,.ashx,… files are saved as UTF-8 with BOM on the hard drive.You are properly URL encoding parameters before sending them (using the encodeURIComponent method):