nobu / ruby-lang.org wrote:

> It would be UTF-8 encoded BOM, but ruby itself never write it
> automatically.
[...]
> Can't you show the code?

Trying to reproduce the problem in a smaller example, I figured out, 
that I'm reading the BOM from one of my source files. Sorry for the 
confusion. I'm doing something like:

File.open("target","w") do |target|
     File.open("source","r") do |source|
         source.each_line do |line|
             ... some processing ...
             target.write(line)
         end
      end
end


source seems to contain the BOM and it is writen to target. Any hint on 
how to strip the BOM?

regards,
Achim