# Ruby 1.9 and Redis

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-and-redis/194587>\
**Category:** Ruby\
**Created:** [September 7, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-redis/194587 "2010-09-07T16:06:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [September 7, 2010, 4:06pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-redis/194587/1 "2010-09-07T16:06:25Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [September 7, 2010, 4:07pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-redis/194587/2 "2010-09-07T16:07:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![turnkeytraders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/ba8739/32.png) [@turnkeytraders](https://www.ruby-forum.com/u/turnkeytraders)\
**Post date:** [September 7, 2010, 4:34pm UTC](https://www.ruby-forum.com/t/ruby-1-9-and-redis/194587/3 "2010-09-07T16:34:42Z")

</div>

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
