Changeset 28949 for main


Ignore:
Timestamp:
2014-03-24T17:29:19+13:00 (10 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed an encoding issue in the depositor, where if you enter utf8 characters into metadata on one page and then click the wizardbutton to go back to the previous page of the wizard, then the character looked wrong (split into 2 parts).

File:
1 edited

Legend:

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

    r23309 r28949  
    129129     
    130130          if (args_prefix == macro_prefix) {
    131             saved_args[args_name] = args[args_name];
     131            // the saved_args are destined to be saved in the database.
     132            // our database code assumes keys and values are in unicode code-point form
     133            // for e.g. 'a macron' is a code-point of 257 in utf-16, represented as a u-short
     134            // and not the 2 bytes version (0xC4 0x81) which is utf-8.
     135            saved_args[args_name] = to_uni(args[args_name]);
    132136          }
    133137      }
Note: See TracChangeset for help on using the changeset viewer.