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 8160073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T18:07:53+00:00 2026-06-06T18:07:53+00:00

I have a problem decoding HTML entities. I have tried using both System.Net.WebUtility.HtmlDecode() and

  • 0

I have a problem decoding HTML entities. I have tried using both

System.Net.WebUtility.HtmlDecode()

and in hopes that it was simply because this was a lightweight version of HttpUtilities, I’ve tried

HttpUtility.HtmlDecode()

as well.

My problem is that I need to decode from Entity names, not Entity Numbers.
(see this list http://www.w3schools.com/tags/ref_entities.asp )

Both of the beforementioned methods decode to and from entity numbers, NOT entity names.

  • 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-06-06T18:07:55+00:00Added an answer on June 6, 2026 at 6:07 pm

    I dont really see your problem. If I test the decoding via WebUtility.HtmlDecode, all entity names that are listed in the link you posted are decoded:

    var encoded = ""'&<>¡¢£¤" +
                  "¥¦§¨©ª«¬­®" +
                  "¯°±²³´µ¶·" +
                  "¸¹º»¼½¾¿" +
                  "×÷ÀÁÂÃÄÅ" +
                  "ÆÇÈÉÊËÌÍ" +
                  "ÎÏÐÑÒÓÔÕ" +
                  "ÖØÙÚÛÜÝÞ" +
                  "ßàáâãäåæ" +
                  "çèéêëìíî" +
                  "ïðñòóôõö" +
                  "øùúûüýþÿ";
    var expected = "\"'&<>¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿×÷ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓ" +
                    "ÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ";
    
    Console.WriteLine(System.Net.WebUtility.HtmlDecode(encoded) == expected);
    

    This small snippet yields true.

    When it comes to encoding: The HtmlEncode function is implemented to work just this way. There is little you can do about that, except from implementing it yourself, which I would not recommend (dont reinvent the wheel if you dont really need to). See also this SO question concerning the encoding: C# HtmlEncode – ISO-8859-1 Entity Names vs Numbers

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

Sidebar

Related Questions

I have problem creating new instance of excel 2007 using VBA (from Access 2002).
I have problem with fancybox. I want to write a function that will run
i have problem with libhid . i found that there 2 way 4 accessing
I have a project that uses Boost.Asio and the Media-Decoding-Samples that come with the
I have a URL that I'm passing through a jQuery ajax call (using encodeURIComponent)
I have a problem involving encoding/decoding. I read text from file and compare it
I have a rather annoying issue that I solved using a simple recursive method
I have problem with returning first letter from string, when that letter is language
I have this problem.I am using decodeByteArray to decode and decrypted data as an
I have some problem for decoding image data from base 64 encoded string. I

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.