Here you can find the source of toUTF_8(String s)
public static String toUTF_8(String s) throws Exception
//package com.java2s; /**//from w w w . ja va 2 s.com * Copyright (C) 2002-2005 WUZEWEN. All rights reserved. * WUZEWEN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ public class Main { public static String toUTF_8(String s) throws Exception { if (s == null || s.length() < 1) return s; byte[] temp_b = s.getBytes("ISO-8859-1"); String sTmpStr = new String(temp_b, "UTF-8"); return sTmpStr; } }