What is this encoding and how to make it readable?

What is this ampersand and, using C #, how to make it readable?

"Votre message a été envoyé. Un représentant du Service &agrave";
+3
source share
3 answers

This is HTML encoded text. You can use HttpUtility.HtmlDecode to decode the text to its original form:

string decoded = HttpUtility.HtmlDecode(encodedString);

decoded must contain:

Post by Votre a été envoyé. UN Service Representative

+4
source

See symbols . In your particular case you have a lot

é

records. It is accented E: É.

I would use HtmlUtility.Decode to decode it.

+1
source

- HTML. , (&) (;). , . , 7- ASCII.

If it is a text object, for example, your "& eacute;", this should be fairly easy to figure out. "& Amp; eacute;" means "sharp percussion e", and "& agrave"; "with serious emphasis." Similarly, "& is an ampersand (which I had to manually insert so that this screen is correct.)

+1
source

Source: https://habr.com/ru/post/1757694/


All Articles