DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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
    >




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links