Yep, it did. Thanks tons!
But I'm not getting any results now. I take this is because of the
default analyzer being used, right?
How can I use a whitespace analyzer in my query? (or something that
could work effectively with asian languages).
For my needs, I suppose the whitespace one could do...
On 7/18/06, David Balmain <[EMAIL PROTECTED]> wrote:
> On 7/18/06, Julio Cesar Ody <[EMAIL PROTECTED]> wrote:
> > I wrote another script that does just that (writes cgi['query'] to
> > /tmp/query.log). After inputting this in a text field name "query" and
> > submitting this chinese string:
> >
> > 新闻
> >
> > This is what appears in the /tmp/query.log
> >
> > 新闻
> >
> > Note that the only thing I did hoping to have evething magically
> > working in UTF-8 is putting this in my script:
> >
> > $KCODE = 'u'
> >
> > Anything I'm missing?
>
> [EMAIL PROTECTED]:~/ $ irb -Ku
> irb(main):001:0> require 'cgi'
> => true
> irb(main):002:0> CGI.unescapeHTML("新闻")
> => "新闻"
>
> That should fix your problem.
>
> Dave
> _______________________________________________
> Ferret-talk mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/ferret-talk
--
Julio C. Ody
http://rootshell.be/~julioody
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk