Last post May 02, 2010 08:07 PM by smithspd
May 02, 2010 11:18 AM|Kitty_Kit|LINK
My daabase has lots of german characters stored. While I read it from DB and display it in the gidview, everything is fine. The Gridview displays the german characters perfectly in the browser.
After the display phase, when I read the data from the gridview as gridview.rows.cells.text, I get some special characters - But the gridview shows the text as 'ä' in the first row, second column. But while reading it back it gives
How to set this right? any help is appreciated. thanks.
May 02, 2010 08:07 PM|smithspd|LINK
Try something like this :
StringBuilder sb = new StringBuilder ();
for( int i=0; i< string.Length; i++ )
if ( (string[i]>='0' and string[i]<='9' ) || (string[i]>='A' and
string[i]<='z' ) )
sb.Append( string[i] );