in reply to Re: Writing utf-8 to a socket with syswrite in perl 5.6
in thread Writing utf-8 to a socket with syswrite in perl 5.6

Thanks to both of you for your help. It turns out that perl 5.6 is reading our UTF-8 encoded file and expanding the 2 bytes unicode characters to 4 bytes. We are switching to ISO-8859-1 encoding until we can upgrade to 5.8.
  • Comment on Re^2: Writing utf-8 to a socket with syswrite in perl 5.6

Replies are listed 'Best First'.
Re^3: Writing utf-8 to a socket with syswrite in perl 5.6
by ikegami (Patriarch) on Feb 15, 2007 at 17:53 UTC
    That makes no sense. If you use binmode, then you'll get a byte-for-byte copy of what was in the file. (If binmode isn't used, CRLF will get converted to LF.)