My Personal Viennale ’10 Programme

Viennale is the annual Vienna film festival, which usually takes up the second half of October. During these days, I spend considerable time in the five festival theatres. It’s a great opportunity to catch a lot of films that I could otherwise never see at all, let alone on the big screen. There are a few mainstream productions shown, but I’m in a habit of steering clear of most of them.

This is my personal programme for 2010. If you would like to meet up, feel free to contact me on facebook, twitter or via mail at squadrat @ this domain (soher.at).

23.10.2010 21:00 – Autobiografia lui Nicolae Ceausescu
24.10.2010 13:00 – The Dubai in Me – Rendering the World
24.10.2010 16:00 – Japan: A Story of Love and Hate
24.10.2010 18:30 – Dansa als esperits
24.10.2010 23:30 – Smash His Camera

26.10.2010 13:30 – American Grindhouse
26.10.2010 18:00 – Die verrückte Welt der Ute Bock
26.10.2010 21:00 – The Forgotten Space
27.10.2010 21:00 – Cuchillo de palo
27.10.2010 23:30 – Bezvucni pad gravitacije

28.10.2010 23:30 – Exit Through the Gift Shop
29.10.2010 23:00 – Marwencol
30.10.2010 01:00 – High School
31.10.2010 13:30 – Los jóvenes muertos

01.11.2010 21:00 – Mein Haus stand in Sulukule
02.11.2010 20:30 – The Pier of Apolonovka

Escape Unicode Characters In Java Strings

I was looking for a code snippet that does that for me but couldn’t find one, especially since native2ascii seems to skip a few characters I need to show. If you’re in a similar situation, feel free to use this:

package at.soher.unicode;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.text.FieldPosition;

public class StringEscape {

    public static void main(String[] args) {

        File file = new File("~/file.txt");
        BufferedReader reader = null;
        try {
            reader = new BufferedReader(new InputStreamReader(
                new FileInputStream(file), "UTF-16"));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        try {
            String line = null;
            while ((line = reader.readLine()) != null) {
                String[] fields = line.split("[\t]");
                if (fields.length > 1) {
                    StringBuilder newLine = new StringBuilder();
                    newLine.append(fields[0] + " = ");

                    String input = fields[2];
                    StringBuilder dest = new StringBuilder();
                    for (int i = 0; i < input.length(); i++) {
                        if (input.charAt(i) > 127) {
                            dest.append("\\u" + asHex((long) input.charAt(i)));
                        } else {
                            dest.append(input.charAt(i));
                        }
                    }
                    newLine.append(dest);
                    System.out.println(newLine.toString());
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String asHex(long number) {
        String hexString = "0000" + Long.toHexString(number).toUpperCase();
        return hexString.substring(hexString.length() - 4);

    }

}