Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within JForum
Search Coderanch
Advance search
Google search
Register / Login
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
Ron McLeod
Paul Clapham
Tim Cooke
Devaka Cooray
Sheriffs:
Liutauras Vilda
paul wheaton
Rob Spoor
Saloon Keepers:
Tim Moores
Stephan van Hulst
Tim Holloway
Piet Souris
Mikalai Zaikin
Bartenders:
Carey Brown
Roland Mueller
Forum:
JForum
search for Chinese words fix
Migrated From Jforum.net
Ranch Hand
Posts: 17424
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
So, the problem is that we cannot have the search as POST - well, we can, but then users won't be able to copy the search url and past somewhere else.
I tried searching for russian text with the current code and it worked. It's very hard to deal with all these cirilyc cyrillic.
Rafael
[originally posted on jforum.net by Rafael Steil]
Migrated From Jforum.net
Ranch Hand
Posts: 17424
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I find a way to search back Chinese words in posts by changing /templates/default/search.htm 's form method from get to post.
Also, you have to check if you have correct code in ActionServletRequest.java
if (isMultipart == false) { superRequest.setCharacterEncoding(encoding); String containerEncoding = SystemGlobals.getValue(ConfigKeys.DEFAULT_CONTAINER_ENCODING); for (Enumeration e = superRequest.getParameterNames(); e.hasMoreElements(); ) { String name = (String)e.nextElement(); //this.query.put(name, new String(superRequest.getParameter(name).getBytes(containerEncoding), encoding)); this.query.put(name, superRequest.getParameter(name)); } }
you can try it on version 2.1.5.
[originally posted on jforum.net by andowson]
Hug your destiny! And hug this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
problem of internationalism in struts framework
cvs 01/18 search do not work by chinese word
Displaying Foreign Languages
How to show JAD file in Chinese?
file name encoding problem
More...