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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. how to generate arabic(Hindi) numbers within c# code?

how to generate arabic(Hindi) numbers within c# code?

Scheduled Pinned Locked Moved C#
csharphelptutorialquestion
3 Posts 2 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.
  • S Offline
    S Offline
    smr85
    wrote on last edited by
    #1

    i need to make a methed send me arabic number even in string formate....this will be used as class library project...not windows..or web application, the problem that always .Net deal with number in english formate i am using C#2.0,have any one any suggstions?

    N 1 Reply Last reply
    0
    • S smr85

      i need to make a methed send me arabic number even in string formate....this will be used as class library project...not windows..or web application, the problem that always .Net deal with number in english formate i am using C#2.0,have any one any suggstions?

      N Offline
      N Offline
      nkit
      wrote on last edited by
      #2

      Do you want to generate devanagri script numbers like: ०१२३४५६७८९ If Yes read on: You can declare chars with the appropriate unicode and then do a ToString() to get the number in the desired format: //Following will return the Devanagri Font '2'. char HindiTwo = '\u0969'; HindiTwo.ToString(); The Unicode for the devanagri fonts 0 to 9 is '\u0967' to '\u096F'

      S 1 Reply Last reply
      0
      • N nkit

        Do you want to generate devanagri script numbers like: ०१२३४५६७८९ If Yes read on: You can declare chars with the appropriate unicode and then do a ToString() to get the number in the desired format: //Following will return the Devanagri Font '2'. char HindiTwo = '\u0969'; HindiTwo.ToString(); The Unicode for the devanagri fonts 0 to 9 is '\u0967' to '\u096F'

        S Offline
        S Offline
        smr85
        wrote on last edited by
        #3

        thx alot, that what i wanted ...and that was the only way to use unicode instead depend on the enviroment culture,but may be the only problem we cannot parse that unicode as number, but anyway it will be appear as i want

        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