• Source
    1. import java.io.UnsupportedEncodingException;
    2. import java.util.Base64;
    3.  
    4. class ex {
    5.  
    6. public static void main(String[] args)
    7. throws UnsupportedEncodingException {
    8. Base64.Decoder decoder = Base64.getDecoder();
    9. String encodedText = "5b6I5a655piT5ZCn77yB";
    10. //解碼
    11. System.out.println(new String(decoder.decode(encodedText), "UTF-8"));
    12. }
    13. }
    14.