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. ASCII code problem [modified]

ASCII code problem [modified]

Scheduled Pinned Locked Moved C#
helpcsharpdata-structuresquestion
4 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.
  • J Offline
    J Offline
    Jamman
    wrote on last edited by
    #1

    I have a problem in converting ASCII extended characters in my C# program. I have already tried the following statement." System.Text.Encoding.Default.GetString(buff). buff is a byte array" this statement does not show me the correct ASCII extended char. Any body cam help out?

    S.Jamman

    modified on Thursday, February 14, 2008 5:14 AM

    C 1 Reply Last reply
    0
    • J Jamman

      I have a problem in converting ASCII extended characters in my C# program. I have already tried the following statement." System.Text.Encoding.Default.GetString(buff). buff is a byte array" this statement does not show me the correct ASCII extended char. Any body cam help out?

      S.Jamman

      modified on Thursday, February 14, 2008 5:14 AM

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      The default encoding is Unicode. Have you tried specifying ASCII directly ?

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      J 1 Reply Last reply
      0
      • C Christian Graus

        The default encoding is Unicode. Have you tried specifying ASCII directly ?

        Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        J Offline
        J Offline
        Jamman
        wrote on last edited by
        #3

        yes I have specified directly to ASCII. Actually Windows does not show the appropriate extended character against the byte code. like 155=Ø in ASCII extended table. But my program shows the character against 155=>. I cannot understand why it is happening?

        S.Akmal

        J 1 Reply Last reply
        0
        • J Jamman

          yes I have specified directly to ASCII. Actually Windows does not show the appropriate extended character against the byte code. like 155=Ø in ASCII extended table. But my program shows the character against 155=>. I cannot understand why it is happening?

          S.Akmal

          J Offline
          J Offline
          J a a n s
          wrote on last edited by
          #4

          Jamman wrote:

          like 155=Ø in ASCII extended table. But my program shows the character against 155=>

          As per the following site '>' is correct ASCII Code - The extended ASCII table[^]

          *jaans

          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