From: Phillip Gawlowski Date: 2011-02-15T14:16:12+09:00 Subject: Re: Cann't require UTF-8 files. On Tue, Feb 15, 2011 at 3:05 AM, Clifford Heath wrote: > > Right. Is there a good reason why Ruby can't just detect a UTF-8 BOM? The use of a byte order mark is optional. Bit hard to detect what isn't there, is it? Here's a (short) discussion on auto-detecting Unicode: http://blogs.msdn.com/b/oldnewthing/archive/2007/04/17/2158334.aspx -- Phillip Gawlowski Though the folk I have met, (Ah, how soon!) they forget When I've moved on to some other place, There may be one or two, When I've played and passed through, Who'll remember my song or my face.