Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 17th, 2012  |  syntax: None  |  size: 0.22 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Converting from arabic string to hex html string in C#
  2. string name = "أحمد";
  3. foreach (char c in name)
  4. {
  5.     int value = (int)c;
  6.     string hex = value.ToString("X4");
  7.     Console.WriteLine("{0} : {1}", hex, c);
  8. }