Java Encode encode2Encode(String original, String encode1, String encode2)

Here you can find the source of encode2Encode(String original, String encode1, String encode2)

Description

encode Encode

License

Apache License

Declaration

public static String encode2Encode(String original, String encode1, String encode2) 

Method Source Code

//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;
    }
}

Related

  1. encode(Object o)
  2. encode(Object o)
  3. encode(Object obj)
  4. encode(Serializable s)
  5. encode(T obj)
  6. encode_u8(String what)
  7. encodeAddresses(String string, String charset)
  8. encodeArguments(final String arg)
  9. encodeArray(String[] sourceArray, String sysCharset, String charset)