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, Ill 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.