Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

How can SearchHighlighter Plugin support Chinese

Quote Reply
How can SearchHighlighter Plugin support Chinese
It only highlighter the English,but not Chinese.
Quote Reply
Re: [backdream] How can SearchHighlighter Plugin support Chinese In reply to
I add a string under " return unless my $search_string = $IN->param('search_string');"

$search_string =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C", hex($1))/eg;

but it seems not work.
Quote Reply
Re: [backdream] How can SearchHighlighter Plugin support Chinese In reply to
haha,I have done it.

The only thing you do is edit the SearchHighlighter.pm, replace the '\b($re)\b' to '($re)'. There are 3 place to modify .