From: Ollivier Robert Date: 2008-12-15T22:42:36+09:00 Subject: Re: Accentuated function names In article <91991a7c6c47ae31b3de62a62d015d4c@ruby-forum.com>, Jean-baptiste H辿tier wrote: >Yeah, I'll probably switch back to English... but I'm still interested >in a solution. In Python you can define the file encoding in some kind >of file header: > #!/usr/bin/python > # -*- coding: -*- As it was already said, 1.9 does support the Encoding string but for 1.8, you may want to try adding "-Ku" to your Ruby invocation. 395 [14:46] roberto@roberto-al:/tmp> ruby -Ku foo.rb Bonjour 396 [14:46] roberto@roberto-al:/tmp> cat foo.rb #! /opt/local/bin/ruby -Ku # def 辿t辿(foo) puts(foo) end 辿t辿("Bonjour") With foo.rb written with utf-8 encoding. -- Ollivier ROBERT -=- EEC/RIF/SEU -=- Systems Engineering Unit