• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

cvs 01/18 search do not work by chinese word

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
# ########
# SEARCH
# ########
search.indexing.enabled = true
search.indexer.quartz.config = ${config.dir}/quartz-jforum.properties

search.indexer.quartz = net.jforum.util.search.quartz.QuartzSearchManager
search.indexer.default = net.jforum.util.search.simple.SimpleSearchManager

search.indexer.implementation = ${search.indexer.quartz}

# Minumum size the word must have in order to get indexed.
# For cyrillic alphabets, the recommended value is "1"
search.min.word.size = 1
search.max.word.size = 100[code]
it cannot work on chinese! it can search "hello" well.but the chinese words can not work well.
tomcat 5.5.x+jdk1.5+oracle 10i
[originally posted on jforum.net by xmvigour]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anyone can test in this forum.
you copy �?ό?? to search.
if it run well,the result must show the topic "
The chinese words could not display correctly.They looks more like ???."
because the �?ό?? is in the topic.
https://coderanch.com/t/575054
[originally posted on jforum.net by xmvigour]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's bad.

We'll see what we can do about it.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:That's bad.

We'll see what we can do about it.

Rafael


i code view templates\default\search.htm and templates\default\post_form.htm.
there is diff with form tag.there have accept-charset="${encoding}" in the search.htm,but not in post_form.htm.
we can post any chinese words or others,and it is running well.so if we remove accept-charset="${encoding}" form search.htm,maybe it can work on well.

it is not work !
[originally posted on jforum.net by xmvigour]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
error still
[originally posted on jforum.net by Anonymous]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think i have work out this problem,but i not have a real test.
today i met a problem with a url encode error use by "get".i search the info about "URIEncoding ".
so if you use tomcat 5.x you must edit ${tomcat_home}/conf/server.xml like that:

the parameter "URIEncoding" default is not set!
so i think it is the key to work out the problem "search do not work by chinese word (or other language)".
[originally posted on jforum.net by xmvigour]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, is search working correctly now?

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Rafael Steil wrote:So, is search working correctly now?

Rafael



error still
[originally posted on jforum.net by fly]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the same problem.
My tomcat,s server.xml as xmvigour wrote, and I have to keep the parameter "URIEncoding" in sever.xml.
So, I try reconfigure SystemGlobals.properties

I change the default.container.encoding into "UTF-8", the original is "ISO-8859-1".
Then search working correctly now!
[originally posted on jforum.net by simchhiong]
 
Every snowflake is perfect and unique. And every snowflake contains a very tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic