Discussion Locked

To encode unicode to 1byte character

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

how to encode unicode string to single byte
characters

1 reply

by hajava

Use method String.getBytes()

byte[] getBytes()
Convert this String into bytes according to the platform's default character encoding, storing the result into a new byte array.

--Heinz

This discussion is closed to new replies.