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.
By mdengler in forum ASP.NET
Last Post: 11-26-2002, 02:32 PM
By Peishan in forum Database
Last Post: 04-23-2002, 10:51 AM
By Fred Mayes in forum Java
Last Post: 06-05-2001, 06:12 AM
By Reuben in forum Enterprise
Last Post: 10-26-2000, 02:43 AM
By Robert Rieth in forum VB Classic
Last Post: 04-11-2000, 03:21 AM
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center