Unicode
C#
3
Posts
3
Posters
0
Views
1
Watching
-
Hello, I want to get the unicode of some chars to send them to a cellphone EX: 0628 represnt the char 'ب' in Arabic iwant to get this 0628 from this letter. thanks
Dad
For each character in the string this displays: The character It's unicode character code in hex It's unicode character code number
string text = "0 a+…”";
foreach (char c in text)
{
Console.WriteLine("{0} U+{1:x4} {2}", c, (int)c, (int)c);
}Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Hello, I want to get the unicode of some chars to send them to a cellphone EX: 0628 represnt the char 'ب' in Arabic iwant to get this 0628 from this letter. thanks
Dad