Usage of the following control:
http://www.brandspankingnew.net/archive/2006/08/ajax_auto-suggest_auto-complete.html
Some changes in Javascript bsn.AutoSuggest_2.1.3_comp.js in order to support Greek language.
Replace twice the
encodeURIComponent(this.sInp)
with
encodeURI(encodeURI(this.sInp))
Read the greek parameters using in a java bean the following code:
try {
request.setCharacterEncoding("UTF-8");
nm = request.getParameter("nm");
nm = java.net.URLDecoder.decode (nm, "UTF-8");
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
}
No comments:
Post a Comment