I need to convert arabic characters to its hex code as in character map, for example
in windows 7 character map with font “Arabic Typesetting” and character set “DOS:Arabic” when choose char ‘ب’ it gives U+0628 (0xA0) I need to get this with C#(in more details mvc3 razor view)
I need to convert arabic characters to its hex code as in character map,
Share
To achieve this you need to take each character, get its integral value, then format it as a string using the hexadecimal format specifier.
For example:
You might also find this helpful: How to: Convert Between Hexadecimal Strings and Numeric Types.