Skip to content

Commit ceae99f

Browse files
committed
#30 CJK search
1 parent c90bb27 commit ceae99f

File tree

2 files changed

+189
-6
lines changed

2 files changed

+189
-6
lines changed

app/controllers/styles_controller.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@ def handle_change(new)
10081008

10091009
def fix_bad_chars(s)
10101010
return s if s.nil?
1011-
return s.encode('UTF-8', 'binary', :invalid => :replace, :undef => :replace, :replace => '')
1011+
return s.encode('UTF-8', :invalid => :replace, :undef => :replace, :replace => '')
10121012
end
10131013

10141014
end

0 commit comments

Comments
 (0)