Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 95875
BY: Clifford Caoile (piyo)
DATE: 2011-02-02 23:08
SUBJECT: RE: Gem win32-eventlog v0.5.2 on Ruby 1.9.1-1.9.2

 

Hello,

I had the same String encoding error when using win32-dir. I proposed the following solution:

http://rubyforge.org/forum/forum.php?thread_id=49201&forum_id=319

which was to force the reset of the Encoding of the data received from the Windows API to the Default External Encoding. In my case that made the String's Encoding turn into Shift JIS.

For your case, try modifying win32/eventlog.rb in the same way as above.


Thread View

Thread Author Date
Gem win32-eventlog v0.5.2 on Ruby 1.9.1-1.9.2Jason Bourne2011-02-02 18:42
      RE: Gem win32-eventlog v0.5.2 on Ruby 1.9.1-1.9.2Clifford Caoile2011-02-02 23:08

Post a followup to this message