C# Hindi font in textbox getting converted into numbers and symbol in PostBack

I am able to type Hindi characters (words) in my textbox. My textbox post back property is set to true and when the OnTextChanged event is fired then the Hindi characters in the textbox gets converted into symbols and number. Looking for help to sort this.

// Design view :

<asp:TextBox ID="txt_Search" runat="server" AutoPostBack="true" OnTextChanged="txt_Search_TextChanged"></asp:TextBox>

// Code behind :
protected void txt_Search_TextChanged(object sender, EventArgs e)



Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Using UTF-8 encoding on Http request is the fix. Setting globalization property in web.config file to this:

<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>

All methods was sourced from or, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x