// Collection of code snippets by Arne VajhÃ¸j 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
public class CharConv {
   public static void main(String[] args) throws Exception {
      String s = "ÆØÅæøå";
      System.out.println(s);
      String s2 = new String(s.getBytes("UTF-8"), "ISO8859-1");
      System.out.println(s2);
      String s3 = new String(s2.getBytes("ISO8859-1"), "UTF-8");
      System.out.println(s3);
   }
}
