Here you can find the source of getBytesISO88591(String s)
public static byte[] getBytesISO88591(String s)
//package com.java2s; import java.io.UnsupportedEncodingException; public class Main { public static byte[] getBytesISO88591(String s) { return getBytes(s, "ISO-8859-1"); }//from ww w . ja va 2s. c o m public static byte[] getBytes(String s, String charset) { try { return s.getBytes(charset); } catch (UnsupportedEncodingException e) { } return null; } }