From: Luis Lavena Date: 2011-08-12T09:37:26+09:00 Subject: Re: Problems with Accent in Ruby 1.9+ (Latin Characters) Regis d'Aubarede wrote in post #1016237: > I think that Phillip Gawlowski is right. > I have try to restated this kind of issue, I get only > "invalid multibyte char" exception : > > >> invalid multibyte char (US-ASCII) (SyntaxError) >> encoding.rb:2: invalid multibyte char (US-ASCII) > > "incompatible character encoding: UTF-8 and IBM437" seem > well append at the "puts" on stdout. > > > On windows, I do all my stuff with 1.9.2 in utf-8, and i forget 1.8... > Issue arrive when I test compatibility with JRuby ! Have you tried running your script directly from the command line? But before, doing: chcp 1252 ? That will activate latin codepage that should be compatible with UTF-8 encoding. You can permanently change that doing a registry edit: http://superuser.com/questions/269818/change-default-code-page-of-windows-console-to-utf-8/269857#269857 Hope that helps -- Luis Lavena -- Posted via http://www.ruby-forum.com/.