Files don't need to be encoded in UTF8, you can chose any encoding supported on your system. IronRuby 1.1.1 supports BOMs and also Ruby specific #encoding directives.
I would suggest always using UTF8. Personally I consider any non-Unicode based encoding obsolete and frankly don't understand why Ruby went the way they did with all that complexity around encodings. It just makes it slower and cumbersome to use. Tomas -----Original Message----- From: ironruby-core-boun...@rubyforge.org [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Timothy Barnes Sent: Wednesday, November 03, 2010 6:19 AM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Running IronRuby script from C# Thanks for the replies. I recreated hello.rb in Scite and the program worked. I have read about UTF8 encoding and ruby, but had not ran into it before, and I didn't not know what the symbols in front of the hello.rb text meant (see VS error message). So thanks for the help. Tomas: I was using IronRuby 1.0.0.0 but had just downloaded IronRuby 1.1.1. However, I originally created the file in SharpDevelop and have been creating IronRuby programs in SharpDevelop with no issue (running in SD Debug), until I tried to call this ruby file from C#. So I still don't quite understand why ruby works one way and not the other, but that seems to be a SharpDevelop issue/setting. I am pretty sure SharpDevelop is running IronRuby 1.0.0.0. After I couldn't get it to work I tried it again in Visual Studio which I assume also called IronRuby 1.0.0.0. since I still had that version installed and my files associated with that version. Last, Now that IronRuby supports the UTF8 encoding, should my files be encoded that way? Or now does it just not matter which encoding I use? and does C# have to be encoded UTF8? -- Posted via http://www.ruby-forum.com/. _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core _______________________________________________ Ironruby-core mailing list Ironruby-core@rubyforge.org http://rubyforge.org/mailman/listinfo/ironruby-core