Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ruby 1.9 encoding issue #78
Encoding::CompatibilityError: incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
[GEM_ROOT]/gems/dalli-1.0.3/lib/active_support/cache/dalli_store.rb, line 154
This could be avoided using explicit encoding in top of course file, but I got a feeling that this is not the best-practice solution. Have anybody used Dalli with Ruby 1.9 + Rails 3 here?
That regexp is not a UTF-8 regexp though. \0xFF is not a valid UTF-8 character, for instance. It's truly a binary regexp so the default is correct. I'm not sure what the correct fix is and I notice that ActiveSupport appears to have the exact same unfixed problem in mem_cache_store.rb.