From: "Mark J. Reed" Date: 2003-09-18T00:15:07+09:00 Subject: Re: UTF-8 question On Wed, Aug 13, 2003 at 09:15:13AM +0900, Nikolai Weibull wrote: > ruby -Ku -e 'puts "\xf1"' > doesn't seem to work right (i get a box, not a squiggly n) That's going the other way. -Ku tells Ruby to treat the source code as UTF-8; it doesn't tell it to generate UTF-8 from methods like puts(). I think you have to do that explicitly with iconv (although if there's an easier way I'd love to learn about it): ruby -riconv -e 'puts Iconv.iconv("UTF-8", "ISO-8859-1", "\xf1")'