From: Quintus Date: 2011-01-17T01:49:28+09:00 Subject: Re: [Ruby 1.9] New String rules? Am 16.01.2011 16:55, schrieb felix.leg: > I have just updated my Ruby into 1.9.0, and tried to run one of my > programs. But I got that response: >> zrzutnik.rb:19: invalid multibyte char (US-ASCII) >> zrzutnik.rb:19: invalid multibyte char (US-ASCII) >> zrzutnik.rb:19: syntax error, unexpected $end, expecting keyword_end >> print "Klucz #{kl.inspect} jest nieznany. Zdefiniować >> nowy [T/N]? " >> ^ > (at Ruby 1.8 it works fine) > > Does it mean I can't use any longer any non-latin character in my > String-s? WTF? > > PS: The file ("zrzutnik.rb") is encoded all in utf-8 (without BOM). > > Put this in as the first line (or second if the file has a shebang): #Encoding: UTF-8 Vale, Marvin