Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to update unicode character in gridview.
Gridview show data with ??????signs when I update data from gridview.I want to show data as I updated.
Posted
Comments
Member 10220152 23-Oct-13 5:43am    
It is not convenient for me.Please help me another way

1 solution

You must set Request and Response encoding for your page/application to support UTF. Also, make sure that the datatype for the coulmn that store the data must be NVARCHAR(in case you are using MS-SQL Server). To set page level encoding add:
HTML
<![CDATA[<%@ Page ResponseEncoding="utf-8" RequestEncoding="utf-8"%>]]>
at the top of your page. And to set application level encoding add:
HTML
<configuration>
   <system.web>
      <globalization
           requestEncoding="utf-8"
           responseEncoding="utf-8"
        />
   </system.web>
</configuration>
in your web.config file. Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900