Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

UTF-32 Support for java

843789Feb 28 2010 — edited Mar 1 2010
Hello Everyone,

I want to print and acquire the integer forms of regional languages. to do this we want UTF-32 encoding hw can i do this in java?

Comments

843789
Praneeth_Kumar_Gunda wrote:
I want to print and acquire the integer forms of regional languages.
What? I don't understand what exactly you want.
to do this we want UTF-32 encoding
Why? UTF-16 (and UTF-8) are perfectly capable of representing every unicode codepoint, no need to use UTF-32 specifically.
843789
I Know, Not Specifically but hw to do tht?
843789
Praneeth_Kumar_Gunda wrote:
I Know, Not Specifically but hw to do tht?
Do you mean something like this -
        byte[] helloAsUTF32Bytes = "Hello".getBytes("utf-32");
        DataInputStream din = new DataInputStream(new ByteArrayInputStream(helloAsUTF32Bytes));
        while (true)
        {
            try
            {
                int v = din.readInt();
                System.out.println(v);
            } catch (EOFException e)
            {
                break;
            }
        }
843789
hw to do tht?
http://www.catb.org/~esr/faqs/smart-questions.html#writewell

How To Ask Questions The Smart Way
Eric Steven Raymond
Rick Moen

Write in clear, grammatical, correctly-spelled language

We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.

So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal - in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.

Spell, punctuate, and capitalize correctly. Don't confuse "its" with "it's", "loose" with "lose", or "discrete" with "discreet". Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)

More generally, if you write like a semi-literate b o o b you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate b o o b to save two entire keystrokes.
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 29 2010
Added on Feb 28 2010
4 comments
858 views