Here you can find the source of encode2Encode(String original, String encode1, String encode2)
public static String encode2Encode(String original, String encode1, String encode2)
//package com.java2s; //License from project: Apache License import java.io.UnsupportedEncodingException; public class Main { public static String encode2Encode(String original, String encode1, String encode2) { if (original != null) { try { return new String(original.getBytes(encode1), encode2); } catch (UnsupportedEncodingException e) { e.printStackTrace();/* w ww .j a va2s . c om*/ return null; } } return null; } }