Wrox Programmer Forums
|
Java GUI Discussions specific to programming Java GUI.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java GUI section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 23rd, 2005, 04:08 AM
Registered User
 
Join Date: Mar 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default about UNICODE

hi,i m a new programmer.i just wanted to know about "UNICODE" concept in java langauage.what does it mean exactly.kindly give me the details with examples.

thanx in advance
regds,
hp

harac prasanna parida
 
Old April 21st, 2005, 03:29 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Unicode is a replacement for the old ASCII way of encoding characters. Basically it uses more bits to represent each character, so it means you can represent a larger number of characters. More info on:

http://www.unicode.org/

HTH

--
Don't Stand on your head - you'll get footprints in your hair
                                           http://charlieharvey.org.uk
                                              http://charlieharvey.com
 
Old May 6th, 2005, 03:19 PM
Authorized User
 
Join Date: Jul 2003
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to merediths
Default


 Unicode isn't particularly a 'java' concept so much as something incorporated into java. As ciderpunx pointed out, it's a replacement for ASCII that basically uses 16 bits (two bytes) to encode a character rather than 8 bits (1 byte). This provides 2^16 possible variations rather than 2^8, which some guys somewhere figured ought to be enough to encode just about every character in every alphabit known to man. Lots of operating systems use unicode internally now too. But unicode is backwardes-compatbile with ansi .. here's an example:

(ASCII Encoding of letter 'a')
character binary decimal
a 01100001 61


(UNICODE Encoding of letter 'a', periods indicate byte boundaries)
a 00000000.01100001 0.0

As you can see, the first byte of the unicode 'a' is all zeros, the second byte is the same as the ASCII value.

Regards,
Meredith Shaebanyan






Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert to unicode msoul Classic ASP Basics 2 January 12th, 2007 10:37 AM
problem in unicode chandanbhakuni Classic ASP Databases 1 September 22nd, 2006 10:22 AM
Unicode MHS Team VB How-To 0 January 18th, 2005 12:03 PM
unicode soodamanir C++ Programming 1 September 20th, 2004 09:02 AM
UniCode Faiz Visual C++ 5 December 17th, 2003 10:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.