Changeset 9674


Ignore:
Timestamp:
2005-04-14T11:59:31+12:00 (19 years ago)
Author:
jrm21
Message:

rename utf-16 to utf-16be, otherwise browsers might get confused

Location:
trunk/gsdl
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/etc/main.cfg

    r9541 r9674  
    120120
    121121# This is very experimental, and you almost certainly don't need it
    122 #Encoding shortname=utf-16 "longname=Unicode (UTF-16BE)"
     122#Encoding shortname=utf-16be "longname=Unicode (UTF-16BE)"
    123123
    124124# The ISO-8859 series
  • trunk/gsdl/src/recpt/cgiutils.cpp

    r9620 r9674  
    486486    if (argnameinfo->multiplechar) {
    487487      // multiple character argument -- sort out any '-' chars
    488       if (args["w"]=="utf-16") // browsers don't like \0 in urls...
     488      if (args["w"]=="utf-16be") // browsers don't like \0 in urls...
    489489        compressed_args += minus_safe (args[argname]);
    490490      else
  • trunk/gsdl/src/recpt/receptionist.cpp

    r9615 r9674  
    971971
    972972  // needed for 16-bit unicode only - big endian marker 0xfeff (RFC 2781)
    973   if (arg_w=="utf-16") {
     973  if (arg_w=="utf-16be") {
    974974    contentout << '\xfe' << '\xff' ;
    975975  }
     
    16231623      configinfo.encodings[longname] = shortname;
    16241624
    1625     } else if (shortname == "utf-16") {
     1625    } else if (shortname == "utf-16be") {
    16261626      // we use the default input converter as this shouldn't ever be used
    16271627      // for converting from unicode...
Note: See TracChangeset for help on using the changeset viewer.