// 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) 
import java.io.UnsupportedEncodingException;

public class CSFun {
    public static void main(String[] args) throws UnsupportedEncodingException {
        String s = "æ";
        for(byte v : s.getBytes("ISO-8859-1")) {
            System.out.print(" " + (v & 0xFF));
        }
        System.out.println();
        for(byte v : s.getBytes("UTF-8")) {
            System.out.print(" " + (v & 0xFF));
        }
        System.out.println();
    }
}
