How to convert unicode character to its escaped ascii equivalent in c#
- by Grant
Hi, 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?