Displaying 1 result from an estimated 1 matches for "some_multibyte_char".
Did you mean:
some_multibyte_chara
2007 Jan 25
0
multibyte character corrupt in highlight method
When I apply highlight() method to the search result,
multibyte characters are corrupted.
The post_tag is located in the middle of last character,
so the last character corrupts.
Here is my code.
query = "SOME_MULTIBYTE_CHARS"
searcher.search_each(query) do |doc_id, score|
puts searcher.highlight(query, doc_id, :field => :content)
end
And this is the result.
... bla, bla, bla, .. <b>SOME_MULTIBYTE_CHARA</b>CTERS ...
How can I do??
--
Posted via http://www.ruby-forum.com/.