public class Base64 extends Object
public static String encode(String input)
the first one is to escape the whole string and then encode it;
the second one is to convert the UTF-16 DOMString to an UTF-8 array of characters and then encode it.
input - Copyright © 2015. All rights reserved.