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. Location of Ascii table or ascii table generator

Location of Ascii table or ascii table generator

Scheduled Pinned Locked Moved C#
csharp
16 Posts 6 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.
  • R Ravi Bhavnani

    They're not generated.  The .NET framework (and other frameworks such as the JDK) use Unicode encodings to map characters in different scripts to byte values.  Unicode and ASCII reference tables are of course available online. Hope this helps. /ravi

    My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

    C Offline
    C Offline
    computerpublic
    wrote on last edited by
    #7

    Ok understood. But "where exactly" (location) are these mapping done in the environment. All I am asking for is a path or file name.

    R L 2 Replies Last reply
    0
    • C computerpublic

      Ok understood. But "where exactly" (location) are these mapping done in the environment. All I am asking for is a path or file name.

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #8

      They are done in read-only sections of code and aren't configurable (i.e. read from a file or the registry).  It's the same with timezone definitions, calendar types and locales. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      1 Reply Last reply
      0
      • C computerpublic

        Ok understood. But "where exactly" (location) are these mapping done in the environment. All I am asking for is a path or file name.

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

        There's no "editor", there's no "file" where the mappings are loaded from.

        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^] They hate us for our freedom![^]

        1 Reply Last reply
        0
        • C computerpublic

          Hi, Does anyone know the exact location of the C#.net ascii table or where exactly it is generated. Can someone please assist me a path or file name. Thank You.

          J Offline
          J Offline
          jschell
          wrote on last edited by
          #10

          I would suppose System.Text.ASCIIEncoding In mscorlib (in mscorlib.dll)

          C 1 Reply Last reply
          0
          • J jschell

            I would suppose System.Text.ASCIIEncoding In mscorlib (in mscorlib.dll)

            C Offline
            C Offline
            computerpublic
            wrote on last edited by
            #11

            Jschell, Thank you very much for the help. I am very curious how you went about finding this file. Can you please explain your methodology? Thanks again.

            J 1 Reply Last reply
            0
            • C computerpublic

              Hi, Does anyone know the exact location of the C#.net ascii table or where exactly it is generated. Can someone please assist me a path or file name. Thank You.

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #12

              That's like asking, "where are the integers stored?", as if there's some table that contains the complete set of integers. There is no such thing. It's a meaningless question. My best guess would be that you want to know where to find typeface (font) files that allow the system to generate a particular glyph on the screen for a given ASCII code (or Unicode codepoint). Some code pages are built into the system, but you may also want to look at dir %SystemRoot%\fonts .

              J 1 Reply Last reply
              0
              • P PIEBALDconsult

                That's like asking, "where are the integers stored?", as if there's some table that contains the complete set of integers. There is no such thing. It's a meaningless question. My best guess would be that you want to know where to find typeface (font) files that allow the system to generate a particular glyph on the screen for a given ASCII code (or Unicode codepoint). Some code pages are built into the system, but you may also want to look at dir %SystemRoot%\fonts .

                J Offline
                J Offline
                jschell
                wrote on last edited by
                #13

                PIEBALDconsult wrote:

                That's like asking, "where are the integers stored?", as if there's some table that contains the complete set of integers. There is no such thing. It's a meaningless question.

                The analogy is not apt. Although ASCII is a rather trivial character set one can suppose that one might handle it like more complex character sets. Certainly since the memory considerations for the entire code page are trivial it certainly would be better unless one found that performance was better without it.

                P 1 Reply Last reply
                0
                • C computerpublic

                  Jschell, Thank you very much for the help. I am very curious how you went about finding this file. Can you please explain your methodology? Thanks again.

                  J Offline
                  J Offline
                  jschell
                  wrote on last edited by
                  #14

                  computerpublic wrote:

                  Can you please explain your methodology?

                  I already knew about encoders and the ASCII one. And if you look up the encoder in the MS docs it tells you which dll contains the classes. It says that right at the top and looks like the following

                  Assembly: mscorlib (in mscorlib.dll)

                  C 1 Reply Last reply
                  0
                  • J jschell

                    PIEBALDconsult wrote:

                    That's like asking, "where are the integers stored?", as if there's some table that contains the complete set of integers. There is no such thing. It's a meaningless question.

                    The analogy is not apt. Although ASCII is a rather trivial character set one can suppose that one might handle it like more complex character sets. Certainly since the memory considerations for the entire code page are trivial it certainly would be better unless one found that performance was better without it.

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #15

                    My point is that ASCII is really just a set of integers and not very useful without context.

                    1 Reply Last reply
                    0
                    • J jschell

                      computerpublic wrote:

                      Can you please explain your methodology?

                      I already knew about encoders and the ASCII one. And if you look up the encoder in the MS docs it tells you which dll contains the classes. It says that right at the top and looks like the following

                      Assembly: mscorlib (in mscorlib.dll)

                      C Offline
                      C Offline
                      computerpublic
                      wrote on last edited by
                      #16

                      Thank you. I really appreciate your help in this matter.

                      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