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

  • Home
  • SEARCH
  • 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 3674118
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T02:48:59+00:00 2026-05-19T02:48:59+00:00

i am beginning with a string containing an encoded unicode character & #xfc; .

  • 0

i am beginning with a string containing an encoded unicode character “& #xfc;“. I pass the string to an object that performs some logic and returns another string. That string is converting the original encoded character to its unicode equivalent “ü“.

I need to get the original encoded character back but so far am not able.

I have tried using the HttpUtility.HtmlEncode() method but that is returning “& #252;” which is not the same.

Can anyone help?

  • 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-19T02:49:00+00:00Added an answer on May 19, 2026 at 2:49 am

    They are pretty much the same, at least for display purposes. HttpUtility.HtmlEncode is using decimal encoding, which is in the format &#DECIMAL; while your original version is in hexadecimal encoding, i.e. in the format &#xHEX;. Since fc in hex is 252 in decimal, the two are equivalent.

    If you really need to get the hex-encoded version, then consider parsing out the decimal and converting it to hex before stuffing it back in to the &#xHEX; format. Something like

    string unicode = "ü";
    string decimalEncoded = HttpUtility.HtmlEncode(unicode);
    int decimal = int.Parse(decimalEncoded.Substring(2, decimalEncoded.Length - 3);
    string hexEncoded = string.Format("&#x{0:X};", decimal);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am just beginning to program in Java and I noticed that String is
Not parsing the parameters in the beginning but parse the input string read from
lot__no is a public string Dim myDelims As String() = New String() {<beginning of
I'm trying to ReReplace the actual beginning/ending tags within a string.   For example,
I want to remove the www. part from the beginning of an URL string
strip_tags only catches tags that have a beginning and end tag. With the strings
I am beginning to write a translator program which will translate a string of
I am trying to validate that the given string contains contains only letters, numbers,
My program gets as input parameter a String containing a list of IP Addresses.
In VB6, if a listbox containing alphanumeric data has focus and a character key

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.