Une Bév
 ue wrote:
> 7stud -- <bbxx789_05ss / yahoo.com> wrote:
> 
>> That is your display device's 
>> interpretation of the string. 
> 
> fine, thanks ;-)
> 
> in fact this is due to my text editor (TextMate); i did the following
> experiment :
> 
> make a folder on desktop with an accentuated character e run the script
> :
> 
> puts "Defaut"  # here the e is accentuated as the folder on desktop
> 
> Dir.glob( "/Users/yt/Desktop/*" ).each { | f | puts f }
> 
> on "RubyMate" (the TextMate "console") i get the right think but copying
> from "RubyMate" to a ruby utf-8 encoded file (still within TextMate) i
> get e' (e ans the accent apart)...

What is a 'ruby utf-8 encoded file'?

As an aside, how do you like TextMate?  You might try running your 
program in Terminal to see if things make more sense.

-- 
Posted via http://www.ruby-forum.com/.