From: "Iñaki Baz Castillo" Date: 2011-02-15T17:47:29+09:00 Subject: Re: Cann't require UTF-8 files. 2011/2/14 Fernando Perez : >> 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. If it's metadata, why are you using "require 'file'" instead of "File.read('file.rb')"? -- Iñaki Baz Castillo