SeletedIndex change charset on Gridview

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
 
M

Michael Nemtsev [MVP]

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
 
I

inga2005

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top