are java strings utf 8?
Strings in Java ARE already UTF-8 rather UTF-16. Are you asking to specify a different encoding when you are trying to convert that string to bytes, i.e. byte[]? If you, yes, then you can specify the encoding, like Barry Gold said, when calling string. getBytes(charset).