Click here to Skip to main content
15,910,471 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In my page, I show Turkish characters, but it is a problem in the GridView, but not in any othe controls. I traced my code in Debug mode to see when a Turkish character is displayed. I select my data from the database, but at that time, everything is fine. When I step through these lines:

gridview.DataSoruce = dt;
gridview.DataBind();

I look at gridview.Rows's data, and I see Turkish characters messed up.

But the browser grid's data is seen correctly. When posting the page, I cannot read the correct word in the code-behind?

Can anybody help me ?

Note: I tried:

XML
<globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
    <!--<globalization
            fileEncoding="ISO-8859-9"
            requestEncoding="ISO-8859-9"
            responseEncoding="ISO-8859-9"
            culture="tr-TR"
            uiCulture="tr-TR" />-->


But it doesn't work.

I wat go give detail info.
the character I have troube is 'Ç'
and it is ascii value : 199
at browser I see 'Ç' at gridview's column but when I look view source of browser I see
'Ç'
--> Html number of ascii value is 199.
and when I post the page I read
'Ç'
instead of Ç .
Posted
Updated 7-Feb-10 11:06am
v4

1 solution

Hi,

What you are viewing while viewing the source is the HTML encoded equivalent of a character, Web browsers use their respective engines to display output on their respective screens and it based on the html encoding.

Please refer the following URL/link, this will surely solve your problem.
http://tlt.its.psu.edu/suggestions/international/web/tips/langtag.html

Above link provides some very good standards for globalization and has some good points to be considered for multiligual web application.


Hope this will help...

Thanx,

Adil...:))
 
Share this answer
 
v2

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