From: William Knapp Date: 2011-05-23T21:09:21+09:00 Subject: Inconsistency between irb and Win7 cmd I'm trying to print a string created from the contents of two arrays. label = "" for i in 1..vArr.length-2 label = "#{label}#{vArr[i]}#{dArr[i]}" end print label vArr is an array of letters and dArr is an array of integers. The label should interweave the two. When I run the code from irb the resulting string is: T0S6S50Q0 When I run the code as part of a .rb file from the command prompt in Win7, I get: 8408368350810 In the latter, all letters have been converted to their integer representations. T=84 S=83 Q=81 I would like to run the .rb file from cmd and get the string I'm getting in irb. Any help is welcomed. Thanks. -- Posted via http://www.ruby-forum.com/.