How to

convert character to hexadecimal equivalent

Published: 19. October 2011 | Updated: 19. October 2011
License: Microsoft Public License (MS-PL)
Categories: Converting
Tags: C# Conversion Text
Was this snippet helpful for you? YESYES / NONO

Snippet code shows how to convert character to hexadecimal equivalent using Uri class.
string hexadecimal = Uri.HexEscape('c');
            
Console.WriteLine(hexadecimal);
Console Output:
%63
Send us feedback about this snippet »



Related Snippets: