From: Luis Lavena Date: 2011-12-15T21:12:41+09:00 Subject: Re: Encoding woes with command promt output Chris Lervag wrote in post #1036849: > Heesob Park wrote in post #1036844: > >> It seems that the actual encoding of test.rb is not CP850 but UTF-8. >> >> The string "æøå" is encoded as "\xC3\xA6\xC3\xB8\xC3\xA5" in UTF-8. > > Well, I've tried marking the file with # Encoding: UTF-8 as well, but it > still doesnt help me getting my "æøå" string printed properly to the > screen. So my problem remains, how do I need to configure this so that a > string like "æøå" in my Ruby file gets printed, and not having to use > the 'ugly' hex injections? > Did you check your console is actually using TrueType fonts? Have you tried setting the codepage to Unicode? (chcp 65001) -- Luis Lavena -- Posted via http://www.ruby-forum.com/.