public static String encode ( String string ) { try { return encode ( string . getBytes ( "UTF-8" ) ) ; } catch ( UnsupportedEncodingException e ) { throw new BugError ( "JVM with missing support for UTF-8." ) ; } }
Encode string value into Base64 format .