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?
Have you tried System.Web.HttpUtility.HtmlDecode("Café")
? it returns 538M results
This is HTML encoded text. You need to decode it:
string decoded = HttpUtility.HtmlDecode(text);
UPDATE: french symbol "é" has HTML code "é
" so, you need to fix your input string.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With