Search code examples
c#html-encode

HTML Encode ≥ vs ≥


I am using a rich text editor on my web application when it goes to save the data into the database it convert the ≥ into ≥. Using the WebUtility.HtmlEncode class it will not Encode ≥ into ≥ so I am not sure what is correct?

Is the rich text editor correct should ≥ encode to ≥?


Solution

  • You could consider both correct, as in, that the end result (when displayed in a modern browser) will be the same.

    The Rich Text Editor however could be playing it safe by not relying on its backend to correctly store and retrieve a high unicode character.