From: Sean O'Halpin Date: 2012-05-19T17:29:43+09:00 Subject: Re: Ruby- puts with accents On Fri, May 18, 2012 at 7:31 PM, Mariano José G. wrote: > # encoding: utf-8 > `chcp 852` #change cmd encoding to unicode Codepage 852 isn't the Unicode codepage - it's MSDOS Latin-2 which isn't even ISO 8859-2 - see http://en.wikipedia.org/wiki/Code_page_852. According to http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756(v=vs.85).aspx the codepage for UTF-8 is 65001. You should be able to set the codepage with chcp 65001 then just output your UTF-8 strings without having to convert them as long as you have the # encoding: utf-8 line near the top of your script. I'm afraid I can't test this at the moment as I don't have access to a Windows machine. Regards, Sean