Changeset 3668


Ignore:
Timestamp:
2003-01-13T20:13:02+13:00 (21 years ago)
Author:
jrm21
Message:

use the utf16outconverter class if we are told to use an encoding called
"utf-16".

File:
1 edited

Legend:

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

    r3663 r3668  
    891891  outconverter->reset();
    892892
     893  // needed for 16-bit unicode only - big endian marker 0xfeff (RFC 2781)
     894  if (arg_w=="utf-16") {
     895    contentout << '\xfe' << '\xff' ;
     896  }
    893897
    894898  recptproto *collectproto = protocols.getrecptproto (args["c"], logout);
     
    14311435      configinfo.encodings[longname] = shortname;
    14321436
     1437    } else if (shortname == "utf-16") {
     1438      // we use the default input converter as this shouldn't ever be used
     1439      // for converting from unicode...
     1440      inconvertclass *inconverter = new inconvertclass();
     1441      utf16outconvertclass *outconverter = new utf16outconvertclass();
     1442      add_converter (shortname, inconverter, outconverter);
     1443      configinfo.encodings[longname] = shortname;
     1444   
    14331445    } else if (!mapfile.empty()) {
    14341446
Note: See TracChangeset for help on using the changeset viewer.