How to properly decode accented characters for display
问题 My raw input file text file contains a string: Café (Should be Café) The text file is a UTF8 file. The output lets say is to another text file, so its not necessarily for a web page. What C# method(s) can i use to output the correct format, Café ? Apparently a common problem? 回答1: Have you tried System.Web.HttpUtility.HtmlDecode("Café") ? it returns 538M results 回答2: This is HTML encoded text. You need to decode it: string decoded = HttpUtility.HtmlDecode(text); UPDATE: french symbol "é