Results 1 to 6 of 6
  1. #1
    ge2000 is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default Character conversion question

    Hi All,

    Can anyone tell me how to convert 2 or 3 integers to a unicode character?

    What I mean is the following;
    When I have 3 int values say, 226, 130 and 172
    These values represent the unicode Euro sign. So the question is how to get there.

    Thanks in advance,

    Ge

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,574
    Rep Power
    12

    Default

    When I have 3 int values say, 226, 130 and 172
    These values represent the unicode Euro sign.

    That's one example, but what are other values supposed to encode? And does the encoding have a name? I ask because its name would be a good place to point Google at.

  3. #3
    ge2000 is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    sorry, I should have said UTF-8 like this table.

    I already read hundreds of google pages but found none working solution.

    Thanks again,

    Ge

  4. #4
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,574
    Rep Power
    12

    Default

    Google +java +utf8

    First hit is Character and Byte Streams in Oracle's Tutorial

    Second is from exampledepot.com

    Both deal with conversions between array of byte and (unicode) string which is very close to what you are doing and should form a starting point.

  5. #5
    ge2000 is offline Member
    Join Date
    Oct 2010
    Posts
    3
    Rep Power
    0

    Default

    Thanks but I was not looking for a Google tutorial :)

    These pages are of course also read many times but does not give the expected result.

  6. #6
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,574
    Rep Power
    12

    Default

    Sorry - my mistake. I hadn't realised what it was you were looking for. I do now. So, good luck with that.

Similar Threads

  1. XLS to PDF conversion
    By nitin2k2k in forum Advanced Java
    Replies: 18
    Last Post: 07-02-2013, 12:17 PM
  2. Read from a certain character to a certain character
    By blackstormattack in forum New To Java
    Replies: 0
    Last Post: 03-16-2009, 12:36 PM
  3. Doc to Pdf conversion
    By praveen.kb in forum Advanced Java
    Replies: 2
    Last Post: 01-16-2009, 01:27 PM
  4. Conversion from wav to vox
    By bozovilla in forum Advanced Java
    Replies: 1
    Last Post: 07-31-2008, 06:54 AM
  5. reading text character by character
    By bugger in forum New To Java
    Replies: 2
    Last Post: 11-09-2007, 09:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •