From: Emiliano Vavassori Date: 2010-06-05T10:33:30+09:00 Subject: pack('m') and Windows files Hi all, first post here, hope to ask things the right way :) I'm using Ruby from RubyInstaller, 1.9.1-p243. I'm trying to send a .txt file (which notepad++ says it's Dos/Windows with ANSI encoding) via email using something like: content = File.read(filename) enccont = [content].pack('m') Then inserting enccont inside a heredoc containing the whole mail to send, like: message =<