From 6182af5e37f21a0c314cecd890c5cc8ad827a422 Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Fri, 3 Apr 2015 23:33:01 -0700 Subject: [PATCH] Revert "Allowing poll feed with UTF-8 title" This reverts commit 63704c5cee0cdbaa34eedf4180bb3e4519182551. --- app/models/search_observer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/search_observer.rb b/app/models/search_observer.rb index d237f5e83bb..5d60df8f635 100644 --- a/app/models/search_observer.rb +++ b/app/models/search_observer.rb @@ -36,7 +36,7 @@ class SearchObserver < ActiveRecord::Observer end def self.update_topics_index(topic_id, title, cooked) - search_data = title.force_encoding(Encoding::UTF_8).dup << " " << scrub_html_for_search(cooked)[0...Topic::MAX_SIMILAR_BODY_LENGTH] + search_data = title.dup << " " << scrub_html_for_search(cooked)[0...Topic::MAX_SIMILAR_BODY_LENGTH] update_index('topic', topic_id, search_data) end