0

How do i convert an accented string to a normal string.

Example:

string name = "Chloé";    
string newName = "Chloé";

thks.

Luís Tiago
  • 113
  • 2
  • 10
  • 1
    possible duplicate of [How can I decode HTML characters in C#?](http://stackoverflow.com/questions/122641/how-can-i-decode-html-characters-in-c) – tnw Aug 17 '15 at 17:02

1 Answers1

5

You can use WebUtility.HtmlDecode to decode the & escape character :

WebUtility.HtmlDecode("Chloé") // will produce : Chloé
Xiaoy312
  • 14,292
  • 1
  • 32
  • 44