Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6760329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:03:07+00:00 2026-05-26T14:03:07+00:00

I was trying to encode the HTML special characters like ‘, , <,> etc

  • 0

I was trying to encode the HTML special characters like ‘, “, <,> etc with HttpUtility.HtmlEncode. But I noticed this is also encoding french characters like (é) to é and now é is getting displayed as it is on my HTML page. I don’t want this I just want to encode ‘, “, <,> and few other characters.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:03:08+00:00Added an answer on May 26, 2026 at 2:03 pm

    Should those characters look differently? Why is it a problem if they are replaced? This is by design. You can take a look at this question to see longer discussion. Unless your users can’t properly see text you are displaying, you shouldn’t mess with this, for security/compatibility reasons.

    HtmlUtility seems to encode several classes of characters, among which ISO-8859-1 character set
    If you still don’t want a specific character to be encoded, you are forced to use string.Replace() for this purpose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im trying to encode some chains to MD5 but I have noticed that: For
I'm trying to encode a URL using the HttpUtility.UrlEncode() method, why am I getting
I'm trying to show Value of Html.TextAreaFor in Javascript Confirm Box but my code
I'm trying to build a Editable GridView like control (Order column) with this code
I'm trying to write a regex function to remove onclick (also onload, onmouseover etc.)
I'm trying to output HTML on my webpages by doing <p> @Server.HtmlEncode(elem.Text.ToString().Replace([BR], <br />));
Trying to decode an invalid encoded utf-8 html page gives different results in python,
I am trying to encode/decode MIME headers in Ruby.
I'm trying to encode some denotational semantics into Agda based on a program I
I'm trying to AES encode data in java, send it over the network and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.