SeletedIndex change charset on Gridview

  • Thread starter Thread starter inga2005
  • Start date Start date
I

inga2005

Hi!
I have a very strange problem. I populate a gridview control with a
list containing swedish cities and that looks fine. But once I click
on one of the rows in the gridview to select that specific row the
swedish characters å,ä,ö are translated into rubbish such as ## and
other. Does anyone know why this is happning?
Cheers
/erik
 
Hello inga2005,

I suppose it happens when viewstate tries to restore your unicode symbols
and translates them to ASCII

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


i> strange problem. I populate a gridview control with a
i> list containing swedish cities and that looks fine. But once I click
i> on one of the rows in the gridview to select that specific row the
i> swedish characters å,ä,ö are translated into rubbish such as ## and
i> other. Does anyone know why this is happning?
i> Cheers
i> /erik
 
Hello inga2005,

I suppose it happens when viewstate tries to restore your unicode symbols
and translates them to ASCII

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

i> strange problem. I populate a gridview control with a
i> list containing swedish cities and that looks fine. But once I click
i> on one of the rows in the gridview to select that specific row the
i> swedish characters å,ä,ö are translated into rubbish such as ## and
i> other. Does anyone know why this is happning?
i> Cheers
i> /erik

Any ideas what I should do to fix this?
/Erik
 
Back
Top