Changeset 33430

Show
Ignore:
Timestamp:
20.08.2019 14:40:59 (4 weeks ago)
Author:
ak19
Message:

Undo call to to_utf8() on the query_string argument (arg[q]) to prevent doubly encoding the query_string argument as this modified the query string, in those cases where arg[q] contains characters outside those used in the script for English. As a result of the double encoding, the user's search term is not found. Doesn't fix the final remaining part of the problem: whereby the query term still looks modified (strangely encoded) to the user in the search box when the search results are displayed. That part of the problem still needs investigating and will committed after it gets fixed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/recpt/gtiaction.cpp

    r30681 r33430  
    394394  text_t target_language_code = args["tlc"]; 
    395395  text_t translation_file_key = args["tfk"]; 
    396   text_t query_string = to_utf8(args["q"]); 
     396  text_t query_string = args["q"]; // = to_utf8(args["q"]); // ends up doubly encoding search term and not finding it 
    397397 
    398398  // Process user corrections