lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolJSON" by Vic
Date Wed, 26 Mar 2008 09:55:51 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by Vic:
http://wiki.apache.org/solr/SolJSON

The comment on the change is:
Correct some typo and add some reference for javascript escape()

------------------------------------------------------------------------------
  </html>
  }}}
  
- === Potential UTF-8 encoding issue ===
+ <!> '''Potential UTF-8 encoding issue'''
- This is a small note: The default javascript  encode() may failed to encoded non-ASCII character
that make the search failed in some cases (e.g. you specify the page encoding for some browser).
To solve the problem, please refer the utf-8 encoding package by webtoolkit.info to write
your own encoding function:
+ 
+ This is a small note: In some environment, the default javascript  escape() may fail to
encoded non-ASCII character into the utf-8 encoded string, which will make the search failed.

+ 
+ To solve the problem, please refer the utf-8 encoding package by webtoolkit.info to write
your own encoding function:
+ 
- * http://www.webtoolkit.info/javascript-url-decode-encode.html
+ http://www.webtoolkit.info/javascript-url-decode-encode.html
+ 
- To apply the function, just replace the escape(query)  in function getquerystring()
+ To apply the correct encode function, just replace the escape(query)  in function getquerystring()
  {{{
  qstr = 'q=' + escape(query);
  }}}
@@ -205, +210 @@

  {{{
  qstr = 'q=' + my_escape(query);
  }}}
+ More about javascript escape function: http://xkr.us/articles/javascript/encode-compare/
  ----
  CategoryQueryResponseWriter
  

Mime
View raw message