As far as I know strings are by default UTF-8 on Android. So your easiest way out would be String.getBytes()<http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/String.html#getBytes%28%29>since the String class internally knows its proper encoding (which is UTF-8).
If you have decoding concerns you could use the Base64<http://developer.android.com/reference/android/util/Base64.html>component for encoding the String prior sending it. The downside is the increased data size. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

