From: Gabriel Lichard Date: 2010-11-14T17:08:36+09:00 Subject: Re: Short question about encoding. Yup I'm on Windows 7. About PowerShell: I tried the classic PowerShell.exe which printed out the same weird characters so I tried "type .\test.rb" and that gave an error so I Googled about PowerShell and Unicode and read that the PowerShell ISE supports Unicode SO I tried that one: "type .\test.rb" works fine and displays the character well, but "ruby .\test.rb" (1.9.2p0) prints the weird characters again. Any more suggestions, please? Powershell ISE log: _________________________________________________________________ PS C:\Users\Ye Olde Poopsmith\Desktop> ruby -v ruby 1.9.2p0 (2010-08-18) [i386-mingw32] _________________________________________________________________ PS C:\Users\Ye Olde Poopsmith\Desktop> ruby .\test.rb "\u221A" # ΓêÜ _________________________________________________________________ PS C:\Users\Ye Olde Poopsmith\Desktop> type .\test.rb #system "chcp 65001" s = "√" p s p s.encoding puts s.to_s -- Posted via http://www.ruby-forum.com/.