Question : Arabic text in grid view from SQL Server

i want to display arabic text in my gridview but the text is not properly displaying.It shows this:

ÅöáÇøó ãóÇ íõÊúáóì Úóáóíúßõãú ÛóíúÑó ãõÍöáøöí ÇáÕøóíúÏö æóÃóäÊõãú ÍõÑõãñ Åöäøó Çááøåó íóÍúßõãõ ãóÇ

I have used these commands but nothing  happens,What should i do?

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////

<globalization requestEncoding="UTF-8" responseEncoding="UTF-8" culture="ar-SA" uiCulture= "ar" />

<globalization requestEncoding="windows-1252" responseEncoding="windows-1252" culture="ar-SA" uiCulture= "ar" />

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

  <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

Answer : Arabic text in grid view from SQL Server

You should use the same encoding for all your work

If using UTF-8( Preferred ) to get data from DB, then you must tell the browser that this data is UTF-8 and so on for any other encoding.

You should add this line of code in head section of HTML page
<META http-equiv="content-type" content="text/html; charset=utf-8">
Random Solutions  
 
programming4us programming4us