Reading utf-8 on windows

I am having a strange problem after upgrading to jruby 1.7.2. Trying to
get the specs to pass, but they’re failing on some utf-8 file
reading/writing. The data is a valid_encoding as a string, but when I
write it to a file and then read it back it is no longer a
valid_encoding. The same code works fine on a mac, and it worked fine on
windows before on jruby 1.6.5.1.

I tried to reproduce with a trivial case but was not able to. Any ideas
what might be going on here?

Actually scratch that. I do have a trivial example.


Matt H.

I have come across encoding trouble with JRuby on Windows this week:

Jeffrey J. wrote in post #1092767:

I have come across encoding trouble with JRuby on Windows this week:

Encoding Problems on Windows when writing UTF-8 files in 1.9 mode · Issue #502 · jruby/jruby · GitHub

appears fixed in git master?