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 / C++ / MFC
  4. how can ı change some of ascii table characters

how can ı change some of ascii table characters

Scheduled Pinned Locked Moved C / C++ / MFC
question
14 Posts 9 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.
  • C can inlife

    can we change ascii table characters ???

    CPalliniC Offline
    CPalliniC Offline
    CPallini
    wrote on last edited by
    #4

    Klingon developers can. :)

    If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
    This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
    [My articles]

    In testa che avete, signor di Ceprano?

    C 1 Reply Last reply
    0
    • CPalliniC CPallini

      Klingon developers can. :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      C Offline
      C Offline
      can inlife
      wrote on last edited by
      #5

      thats a file right, so ı believe we can change it someway , ı dont know how but ı think somebody had been handled and changed it :doh:

      E 1 Reply Last reply
      0
      • T Tim Craig

        As Chris says, ASCII is a standard coding and you can't change it, we won't let you. :suss: However, are you asking if you can change what is actually displayed when you print a particular ASCII character? If that's your question, then the answer is yes. Create your own font. Check out Dingbats for an example of how crazy you can get with that.

        You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.

        G Offline
        G Offline
        gamefreak2291
        wrote on last edited by
        #6

        if(0x65)
        {
        cout << 0x66;
        }

        ??

        T 1 Reply Last reply
        0
        • C can inlife

          can we change ascii table characters ???

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #7

          Can you explain a little better? It's far from clear exactly what you mean.

          Steve

          1 Reply Last reply
          0
          • G gamefreak2291

            if(0x65)
            {
            cout << 0x66;
            }

            ??

            T Offline
            T Offline
            Tim Craig
            wrote on last edited by
            #8

            Ok, that's possible but trivial. It's obviously not clear to me what he's asking.

            The wonderful thing about the Darwin Awards is that everyone wins, especially the members of the audience.

            C 1 Reply Last reply
            0
            • C can inlife

              thats a file right, so ı believe we can change it someway , ı dont know how but ı think somebody had been handled and changed it :doh:

              E Offline
              E Offline
              Emilio Garavaglia
              wrote on last edited by
              #9

              It is clear none of us understood what your question is about. Can you explain WHY are you trying to do that and WHAT are you trying to achieve in that way?

              2 bugs found. > recompile ... 65534 bugs found. :doh:

              1 Reply Last reply
              0
              • T Tim Craig

                Ok, that's possible but trivial. It's obviously not clear to me what he's asking.

                The wonderful thing about the Darwin Awards is that everyone wins, especially the members of the audience.

                C Offline
                C Offline
                can inlife
                wrote on last edited by
                #10

                if(0x65) { cout << 0x66; } this is the way, but only hollow like that, 65 means A ? YES and 66 means B ? YES now when we change it 65 will B, 66 mean A but how ? :confused: if we take a file which s called ascii table, let change something on it ;) but ı couldnt see anyhing for now. ı just think maybe its trivial and unused but something we should do that to me.

                T A 2 Replies Last reply
                0
                • C can inlife

                  if(0x65) { cout << 0x66; } this is the way, but only hollow like that, 65 means A ? YES and 66 means B ? YES now when we change it 65 will B, 66 mean A but how ? :confused: if we take a file which s called ascii table, let change something on it ;) but ı couldnt see anyhing for now. ı just think maybe its trivial and unused but something we should do that to me.

                  T Offline
                  T Offline
                  Tim Craig
                  wrote on last edited by
                  #11

                  So clarify for us what you're trying to do. Is it when you execute the following line: printf("%s", "Foo"); You want to change something in the OS so that the following output is produced? Xyy

                  The wonderful thing about the Darwin Awards is that everyone wins, especially the members of the audience.

                  1 Reply Last reply
                  0
                  • C can inlife

                    if(0x65) { cout << 0x66; } this is the way, but only hollow like that, 65 means A ? YES and 66 means B ? YES now when we change it 65 will B, 66 mean A but how ? :confused: if we take a file which s called ascii table, let change something on it ;) but ı couldnt see anyhing for now. ı just think maybe its trivial and unused but something we should do that to me.

                    A Offline
                    A Offline
                    Ajay Vijayvargiya
                    wrote on last edited by
                    #12

                    Do you mean to display like?

                    cout << (char)0x66;

                    Also 66 is 'B', 0x66 is not! 0x66 is 102, which is 'f'. Or, do you a string-array, and want to manipulate it?

                    1 Reply Last reply
                    0
                    • C can inlife

                      can we change ascii table characters ???

                      M Offline
                      M Offline
                      Michel Godfroid
                      wrote on last edited by
                      #13

                      Well, there's ASCII and ASCII. (you probably don't mean ASCII, but ANSI, which is Windows-1252. ASCII is a seven-bit encoding scheme from days gone by) I suppose you see funny characters on the screen, and you're wondering where they come from. First, someone may have changed you code page.Google or Bing code page and you'll find instructions on how to set your code page in most Operating systems. Vista and seven don't have code pages anymore, because they use Unicode all over the place, and don't support old dos 16-bit programs anymore. The ASCII table still lingers as the first 128 characters of Unicode. Does this put you on your way?

                      C 1 Reply Last reply
                      0
                      • M Michel Godfroid

                        Well, there's ASCII and ASCII. (you probably don't mean ASCII, but ANSI, which is Windows-1252. ASCII is a seven-bit encoding scheme from days gone by) I suppose you see funny characters on the screen, and you're wondering where they come from. First, someone may have changed you code page.Google or Bing code page and you'll find instructions on how to set your code page in most Operating systems. Vista and seven don't have code pages anymore, because they use Unicode all over the place, and don't support old dos 16-bit programs anymore. The ASCII table still lingers as the first 128 characters of Unicode. Does this put you on your way?

                        C Offline
                        C Offline
                        can inlife
                        wrote on last edited by
                        #14

                        thanks a lot everyone, realy. an example, in the C program. ı had wanted: when I take "A" from keyboard, C understand it "65" Ascii.because computer run with ascii you know. like that: if('A'==65) printf("yes, this A"); ;) ı can do this with a few variable in the program. but it s real just in that file. not anwhere apart from that c program. thats what ı had want :D ıf ı could, ı chanced it from source ( ı dont know, where is the source :laugh: in operating system, in debugger or maybe in hardware :^) ) like a frind it s nonsense. again so thanks. ı stopped to find a way :-O

                        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