Bonjour à tous,
I have a script starting like this :
#!/usr/bin/env ruby
# encoding: iso8859-1
When I lauch it, the following error occurs:
.../ruby-1.9.1-rc1/lib/ruby/1.9.1/tk.rb:3028:in `find':
unknown encoding name - (ArgumentError)
from /.../ruby-1.9.1-rc1/lib/ruby/1.9.1/tk.rb:3028:in `<top (required)
'
from ./gotic:1565:in `require'
from ./gotic:1565:in `test_tk'
...
The test_tk top method is the following:
def test_tk
require 'tk'
root = TkRoot.new { title "Test de Tk sous Ruby" }
TkLabel.new(root) {
text 'Essai de Ruby/Tk !'
pack { padx 15 ; pady 15; side 'left' }
}
TkButton.new(root) {
text 'Quitter'
pack { padx 15 ; pady 15; side 'bottom' }
command 'exit'
}
Tk.mainloop
end #def test_tk
Also, is there any online doc on all the encoding feature from
ruby-1.9.1???
For sample, can we specifiy anywhere in the toplevel pplication file
(and not in **all* file
the encoding?
Thank you very much.
-- Maurice