Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Unicode

Unicode

Scheduled Pinned Locked Moved C#
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hadad
    wrote on last edited by
    #1

    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

    M L 2 Replies Last reply
    0
    • H hadad

      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

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • H hadad

        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

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Chars already are in unicode

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups