Urgent !!! How do I get actual character value for a Unicode


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Urgent !!! How do I get actual character value for a Unicode

  1. #1
    cvshah Guest

    Urgent !!! How do I get actual character value for a Unicode


    Hi,

    I'm getting Unicode/Ascii...values and I want to convert them to actual character
    values...

    for example..
    65 -->which corresponds to 'A'... or
    66 -->which corresponds to 'B' ..etc.

    In Java, is there any function, which does this job of returning the actual
    characters for the Unicode value ?? (In C/C++ itoa() function does this work).

    Thanks in Advance,
    cvshah


  2. #2
    Paul Clapham Guest

    Re: Urgent !!! How do I get actual character value for a Unicode

    No, there's no such function. You just cast them.

    char unicode = 'A';
    int equivalent = (int)unicode;

    PC2

    "cvshah" <chintu_shah@yahoo.com> wrote in message
    news:3b238244$1@news.devx.com...
    >
    > Hi,
    >
    > I'm getting Unicode/Ascii...values and I want to convert them to actual

    character
    > values...
    >
    > for example..
    > 65 -->which corresponds to 'A'... or
    > 66 -->which corresponds to 'B' ..etc.
    >
    > In Java, is there any function, which does this job of returning the

    actual
    > characters for the Unicode value ?? (In C/C++ itoa() function does this

    work).
    >
    > Thanks in Advance,
    > cvshah
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center