Here you can find the source of decode(String source)
public static String decode(String source)
//package com.java2s; //License from project: Apache License import java.nio.charset.Charset; import javax.xml.bind.DatatypeConverter; public class Main { public static String decode(String source) { return new String(DatatypeConverter.parseHexBinary(source), Charset.forName("UTF-8")); }//from w ww . ja va 2 s .c om }