Ruby 1.9 and Redis

Hello,

I’m running on Snow Leopard, Ruby 1.9.1-p429 and i’m using the Redis
2.0.5 gem. Now when I’m running this line on OS X: redis.keys("") it
fails, when I run it on Linux, it works! on OS X, I’m getting the
following error: ruby/1.9.1/gems/redis-2.0.5/lib/redis.rb:610:in
`split’: invalid byte sequence in UTF-8 (ArgumentError). Anyone else had
this issue? I tried force encoding the "
" string to UTF-8 and it still
fails.

Matthew L. wrote:

Hello,

I’m running on Snow Leopard, Ruby 1.9.1-p429 and i’m using the Redis
2.0.5 gem. Now when I’m running this line on OS X: redis.keys("") it
fails, when I run it on Linux, it works! on OS X, I’m getting the
following error: ruby/1.9.1/gems/redis-2.0.5/lib/redis.rb:610:in
`split’: invalid byte sequence in UTF-8 (ArgumentError). Anyone else had
this issue? I tried force encoding the "
" string to UTF-8 and it still
fails.

My linux server is running the same versions of Ruby and the gem as
well.

Matthew L. wrote:

Matthew L. wrote:

Hello,

I’m running on Snow Leopard, Ruby 1.9.1-p429 and i’m using the Redis
2.0.5 gem. Now when I’m running this line on OS X: redis.keys("") it
fails, when I run it on Linux, it works! on OS X, I’m getting the
following error: ruby/1.9.1/gems/redis-2.0.5/lib/redis.rb:610:in
`split’: invalid byte sequence in UTF-8 (ArgumentError). Anyone else had
this issue? I tried force encoding the "
" string to UTF-8 and it still
fails.

My linux server is running the same versions of Ruby and the gem as
well.

Ah nevermind, found out my problem heh

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