Changeset 13132


Ignore:
Timestamp:
2006-10-19T11:34:58+13:00 (18 years ago)
Author:
mdewsnip
Message:

Stopped running to_utf8 on the submitted strings, as this is causing the submitted values to be UTF-8 encoded twice -- buggering things up. Hopefully this doesn't mess up other languages though?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/gtiaction.cpp

    r13131 r13132  
    469469      submission_text += &cgi_argument_name_cstr[strlen(source_chunk_key_start_cstr)];
    470470      submission_text += "\">\n";
    471       submission_text += to_utf8(xml_safe(decode_commas(args[cgi_argument->first]))) + "\n";
     471
     472      text_t source_value = xml_safe(decode_commas(args[cgi_argument->first]));
     473      // if (args["w"] != "utf-8") {
     474      // source_value = to_utf8(source_value);
     475      // }
     476      submission_text += source_value + "\n";
    472477      submission_text += "</SourceFileText>\n";
    473478    }
     
    477482      submission_text += &cgi_argument_name_cstr[strlen(target_chunk_key_start_cstr)];
    478483      submission_text += "\">\n";
    479       submission_text += to_utf8(xml_safe(decode_commas(args[cgi_argument->first]))) + "\n";
     484
     485      text_t target_value = xml_safe(decode_commas(args[cgi_argument->first]));
     486      // if (args["w"] != "utf-8") {
     487      // target_value = to_utf8(target_value);
     488      // }
     489      submission_text += target_value + "\n";
    480490      submission_text += "</TargetFileText>\n";
    481491    }
Note: See TracChangeset for help on using the changeset viewer.