Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@locus.apache.org Received: (qmail 64602 invoked from network); 26 Mar 2008 09:56:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Mar 2008 09:56:25 -0000 Received: (qmail 35356 invoked by uid 500); 26 Mar 2008 09:56:23 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 35330 invoked by uid 500); 26 Mar 2008 09:56:23 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 35321 invoked by uid 99); 26 Mar 2008 09:56:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 02:56:23 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2008 09:55:31 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 86683D2E9 for ; Wed, 26 Mar 2008 09:55:51 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: solr-commits@lucene.apache.org Date: Wed, 26 Mar 2008 09:55:51 -0000 Message-ID: <20080326095551.26508.26051@eos.apache.org> Subject: [Solr Wiki] Update of "SolJSON" by Vic X-Virus-Checked: Checked by ClamAV on apache.org 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() ------------------------------------------------------------------------------ }}} - === 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