vendor/riddle/lib/riddle/client.rb in pixeltrix-thinking-sphinx-1.1.5 vs vendor/riddle/lib/riddle/client.rb in pixeltrix-thinking-sphinx-1.2.1
- old
+ new
@@ -435,9 +435,12 @@
response = ""
status = -1
version = 0
length = 0
message = Array(messages).join("")
+ if message.respond_to?(:force_encoding)
+ message = message.force_encoding('ASCII-8BIT')
+ end
connect do |socket|
case command
when :search
# Message length is +4 to account for the following count value for