Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Encoding problem?
Message
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00780633
Message ID:
00780679
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform