Changeset 2054


Ignore:
Timestamp:
2001-02-23T15:41:03+13:00 (23 years ago)
Author:
paynter
Message:

Convert UTF8 query terms into URL-safe "x-www-form-urlencoded" form before
sending them to phindcgi.

Location:
trunk/gsdl/src/phind/client
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/phind/client/Phind.java

    r2030 r2054  
    286286        // Convert the String from UTF8 charaters into
    287287        // an encoding that is okay for a URL.
    288 
    289         //searchWord = searchWord.trim().toLowerCase();
    290         //for (int i = 0; i < searchWord.length(); i++) {
    291         //      if ((searchWord.charAt(i) < 'a') || (searchWord.charAt(i) > 'z')) {
    292         //      searchWord = searchWord.substring(0, i);
    293         //  }
    294         //}
    295 
    296         // look up the word
     288        searchWord = URLUTF8Encoder.encode(searchWord);
     289
     290        // Look up the word
    297291        if (searchWord.length() > 1) {
    298292        setStatus("searching for \"" + searchWord + "\"");
Note: See TracChangeset for help on using the changeset viewer.