-
Characters in String : Unicode 16-bit to custom 32-bit
I understand that internally in Java, characters in Strings are actually Unicode characters, with each character represented with 16 bits.
So, character “L” in Unicode is 0x004C
which is also 0000 0000 0100 1100
Now, I wish to encode each of the 4 bits above into individual ASCII characters:
= 0 0 4 C
= 0x30 0x30 0x34 0x43
= 00110000 00110000 00110100 01000011
So, from the original 16-bit character in Java, I want a final 32-bit.
Eventually, I’ll need to send the final result over the network, via OutputStream/writer and socket.
Can someone help me on this ? Or give me some ideas... Thanks.
Similar Threads
-
By mdengler in forum ASP.NET
Replies: 0
Last Post: 11-26-2002, 02:32 PM
-
By Peishan in forum Database
Replies: 4
Last Post: 04-23-2002, 10:51 AM
-
By Fred Mayes in forum Java
Replies: 1
Last Post: 06-05-2001, 06:12 AM
-
By Reuben in forum Enterprise
Replies: 1
Last Post: 10-26-2000, 02:43 AM
-
By Robert Rieth in forum VB Classic
Replies: 1
Last Post: 04-11-2000, 03:21 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks