From: Luis Lavena Date: 2011-02-03T03:25:21+09:00 Subject: Re: Gem win32-eventlog v0.5.2 on Ruby 1.9.1 On Feb 2, 2:40 pm, "Luis M." wrote: > Luis M. wrote in post #979203: > > > > > > > > > > > Luis Lavena wrote in post #979202: > >> On Feb 2, 1:51pm, "Luis M." wrote: > >>> 3. Problem: On Ruby 1.8.7 my scripts using win32 evenlog api works fine > >>> but on ruby 1.9.1 they don't. I know the String management has changed > >>> on Ruby 1.9.1 and above. > > >> Please try Ruby 1.9.2-p136. > > >> Also, report the issue back to win32utils developers: > > >>http://rubyforge.org/projects/win32utils > > >> Who will tell you the same thing, try Ruby 1.9.2 > > > I will try this new version. > > I tried the new version Ruby 1.9.2, installing the win32-eventlog gem > but the same result. > > C:/Ruby192/lib/ruby/gems/1.9.1/gems/win32-eventlog-0.5.2/lib/win32/eventlog .rb:14:in > `[]': invalid byte sequence in US-ASCII (ArgumentError) First your script needs to be in the same encoding that eventlog is expecting. As I mentioned, please report this error/bug to win32utils developers in the provided link, they might be able to help you better. -- Luis Lavena