[LRUG] UTF8 errors parsing mail file

Frederick Cheung frederick.cheung at gmail.com
Thu Aug 22 08:27:26 PDT 2013


On 22 Aug 2013, at 16:21, gvim <gvimrc at gmail.com> wrote:

> I'm encountering some UTF-8 errors in Ruby 2.0. When installing gems I often see non-fatal errors relating to conversion of ASCII characters to UTF-8. The following script is designed to search a large Maildir folder for lines beginning with 4 word characters:
> 

Are those files guaranteed to contain only valid utf-8 ? If not then if you might be able to get away with opening them as ascii-8bit (assuming that you don't need to work with them in a unicode aware way)

Fred





More information about the Chat mailing list