On Fri, 21 Jan 2011, Erland Sommarskog wrote: > > There is still one thing that is not clear to me. The incorrect end-of-line > was > > 0D 00 0A > > But the way you describe it, I would expect it to be > > 0D 0A 00
I went back to the very first message in the thread, where you write: | When I open the output in a hex editor I see | | 31 00 0D 0A 00 32 00 0D 0A 00 33 0D 0A 00 | | I would expect to see: | | 31 00 0D 00 0A 00 32 00 0D 00 0A 00 33 0D 00 0A 00 | | That is, I expect \n to be translated to 0D 00 0A 00, now it is translated | to three bytes. ( from http://code.activestate.com/lists/perl-unicode/3256/ ) So it looks like what you saw is exactly what you expect to see based on my explanation. :) I couldn't find any example where you had "\r\0\n" as a line ending. Cheers, -Jan