From: Brian Candler Date: 2011-01-25T21:12:39+09:00 Subject: Re: New String rules? felix.leg wrote in post #975280: > 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). You want to know the new String rules in ruby 1.9? Try https://github.com/candlerb/string19/ (and click through to string19.rb) I've found about 200 rules so far. I'm sticking with 1.8. -- Posted via http://www.ruby-forum.com/.