import java.io.*;

public class Converter{

        static public String toISO8859String(String sSource){
                try{
                        return new String(sSource.getBytes("ISO-8859-1"),"Big5");
                }
                catch(UnsupportedEncodingException e){return null;}
                catch(NullPointerException ne){return "";}
        }

        static public String toBIG5String(String sSource){
                try{
                        return new String(sSource.getBytes("Big5"),"ISO-8859-1");
                }
                catch(UnsupportedEncodingException e){return null;}
                catch(NullPointerException ne){return "";}
        }
}

