Here you can find the source of getISOString(String src)
public static String getISOString(String src)
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static String getISOString(String src) { try {/*from w w w .j av a 2s.c om*/ return new String(src.getBytes("UTF-8"), "ISO8859-1"); } catch (UnsupportedEncodingException e) { e.printStackTrace(); return src; } } }