what is the code for java encoder from ascii to uncode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jann
    New Member
    • Nov 2007
    • 1

    what is the code for java encoder from ascii to uncode

    please help me with my project
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    The first 128 codepoints of Unicode are equal to ASCII code.

    kind regards,

    Jos

    Comment

    • r035198x
      MVP
      • Sep 2006
      • 13225

      #3
      Originally posted by JosAH
      The first 128 codepoints of Unicode are equal to ASCII code.

      kind regards,

      Jos
      I'd be interested in hearing the OP's response to this ...

      <crosses fingers>

      Comment

      • heat84
        New Member
        • Nov 2007
        • 118

        #4
        ASCII is 7 bit and Unicode is 16 bit . When converting ASCII to Unicode , you just add 9 significant bits (zeros in this case ) to the 7 already existing bits. Can you try to do code for that , then help will inevitably come from that point.

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by heat84
          ASCII is 7 bit and Unicode is 16 bit . When converting ASCII to Unicode , you just add 9 significant bits (zeros in this case ) to the 7 already existing bits. Can you try to do code for that , then help will inevitably come from that point.
          Unicode code points need up to 32 bits already (Chinese (classic and simplified),
          Japanese and Korean take up a lot of space).

          The so called 'page 0' takes up 16 bits by itself. see http://www.unicode.org

          kind regards,

          Jos

          Comment

          • heat84
            New Member
            • Nov 2007
            • 118

            #6
            Thanks jos , i thought its still 16 bit, I wonder if the unicode 5 is already functional as yet. I think the solution does not change though , pad zeros on the MSB

            Comment

            Working...