From: Panagiotis Atmatzidis Date: 2012-09-05T05:53:59+09:00 Subject: Re: How to get unicode support in ruby Hello, Yes you're write, it must be in the 2nd line though, if it's in the 3rd like: #!/usr/bin/env ruby # # encoding: UTF-8 Doesn't work :-) must be: #!/usr/bin/env ruby # encoding: UTF-8 thanks :-) On 4 Σεπ 2012, at 23:44 , Jeremy Bopp wrote: > On 09/04/2012 03:28 PM, Panagiotis Atmatzidis wrote: >> Hello, >> >> I see that shebang: >> #!/usr/bin/env ruby >> >> doesn't work if not on the first line. Same goes for UTF-8: >> >> # encoding: utf-8 >> >> needs to be the first one to get accepted. > > This is incorrect. If the first line of the file is a shebang line, the > encoding line may follow it on the second line. > >> Is there a way to combine both? To avoid having program.rb ? I like more 'program' + shebang. > > Yes, put the shebang line first and follow it with the encoding line. > :-) > > -Jeremy > Panagiotis Atmatzidis ----------------------------- Pharmacy Student at VFU email4lists: ml@convalesco.org More info: http://about.me/atmosx The wise man said: "Never argue with an idiot, he brings you down to his level and beat you with experience."