How to convert unicode character to its escaped ascii equivalent in c#

Posted by Grant on Stack Overflow See other posts from Stack Overflow or by Grant
Published on 2011-01-11T22:44:33Z Indexed on 2011/01/11 22:53 UTC
Read the original article Hit count: 139

Filed under:
|
|
|
|

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?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET