additional questions did arise during my first experiments. How does Ruby 1.9 recognize a File-Encoding (if it will be done)? - Or how can I specify the expected encoding while opening a file? This does affect ignorable bytes like BOM too, because in a binary mode they are data. Wolfgang NáÅasi-Donner