From: Eric Hodel Date: 2011-02-15T08:08:12+09:00 Subject: Re: Cann't require UTF-8 files. On Feb 14, 2011, at 12:48 AM, Josh Cheek wrote: > On Mon, Feb 14, 2011 at 2:30 AM, Fernando Perez wrote: > >>> Are you using ruby 1.9? If so, then you need to add a magic encoding >>> line as the first line (or second if the first is a shebang line) of >>> your source file, like this: >>> # encoding: utf-8 >> >> Is there a way to avoid adding this magic encoding line in each file? >> >> That's really a metadata and does not belong to the source code. > > Run with -Ku flag. This is not a good solution for library code.