Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Encoding problem?
Message
General information
Forum:
ASP.NET
Category:
Web forms
Miscellaneous
Thread ID:
00780633
Message ID:
00780679
Views:
15
Hi Chris,

Use the HttpUtility.UrlDecode method to convert the Unicode:
YourTextBox.Text = 
HttpUtility.UrlDecode(ds.Tables["MyTable"].Rows[0]["MyField"].ToString());
>In a C# ASP.Net application I’m using SQL Server data stored in an nText field.
>When I display my data in anything that is non editable such as a table or a label, it shows fine. When I display in an input field, I get the Unicode values for any special characters. (Such as accented characters.)
>I can paste into the input boxes and it will display fine and save fine. Its just when I go to redisplay it for an edit that I get the Unicode values instead of the characters.
>
>Any ideas would be appreciated,
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform