Here you can find the source of toUnicode(String source)
public static String toUnicode(String source)
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static String toUnicode(String source) { String ret = null;/*from w w w.j ava 2s. c o m*/ if (source == null) return null; try { ret = new String(source.getBytes(), "8859_1"); } catch (UnsupportedEncodingException e) { ret = null; } return ret; } }