From: nobu.nokada@... Date: 2005-05-12T22:52:57+09:00 Subject: Re: Encoding Pragma Hi, At Thu, 12 May 2005 12:35:21 +0900, Yukihiro Matsumoto wrote in [ruby-core:04885]: > |> Why don't I retrieve the UTF-8 answer in the first case? > | > |Although ruby doesn't have pragma right now, I'm using this > |patch. > > Does this patch switch encodings in the middle of the file? Yes. > Python pragma should appear in the first 2 lines at the top of the > file[1]. I think Python's rule is more appropriate. Encodings certainly shouldn't change within a file. But any pragmas can't appear in the middle? -- Nobu Nakada