in reply to UTF 16 encoding problems

See Chicanery Needed to Handle Unicode Text on Microsoft Windows and PerlIO: crlf layer on Windows interfering with UCS-2 unicode for much more information about this problem.