Thursday, June 14, 2012

[android-developers] Re: UTF-8 encoding and decoding

As far as I know strings are by default UTF-8 on Android. So your easiest way out would be String.getBytes() since the String class internally knows its proper encoding (which is UTF-8).

If you have decoding concerns you could use the Base64 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate