ohm 0.0.22 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ohm/redis.rb +1 -1
- metadata +1 -1
data/lib/ohm/redis.rb
CHANGED
|
@@ -240,7 +240,7 @@ module Ohm
|
|
|
240
240
|
def format_bulk_reply(line)
|
|
241
241
|
bulklen = line.to_i
|
|
242
242
|
return nil if bulklen == -1
|
|
243
|
-
reply = @sock.read(bulklen).
|
|
243
|
+
reply = @sock.read(bulklen).force_encoding("UTF-8")
|
|
244
244
|
@sock.read(2) # Discard CRLF.
|
|
245
245
|
reply
|
|
246
246
|
end
|