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:

https://github.com/jruby/jruby/issues/502

Jeffrey J. wrote in post #1092767:

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

https://github.com/jruby/jruby/issues/502

appears fixed in git master?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs