[Ironruby-core] Running IronRuby script from C#
Tomas.Matousek at microsoft.com
Wed Nov 3 12:30:08 EDT 2010
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.
From: ironruby-core-bounces at rubyforge.org [mailto:ironruby-core-bounces at rubyforge.org] On Behalf Of Timothy Barnes
Sent: Wednesday, November 03, 2010 6:19 AM
To: ironruby-core at 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 22.214.171.124 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 126.96.36.199. After I couldn't get it to work I tried it again in Visual Studio which I assume also called IronRuby 188.8.131.52. 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 at rubyforge.org
More information about the Ironruby-core