Difference between revisions of "Ns register encoding"

From AOLserver Wiki
Jump to navigation Jump to search
(Created page with ''''NAME''' : ns_register_encoding - Map method/URL combination to a specific charset encoding for decoding the request (new in AOLserver 4.5) '''SYNOPSIS''' : '''ns_register_e…')
 
 
Line 10: Line 10:
  
 
: '''ns_register_encoding''' command enables mapping of method/URL combinations to specific charset encodings used to decode the request. If no mapping exists for a given method/URL, the server will use that defined for the virtual server or process wide by the ''urlcharset'' config setting. This setting defaults to NULL, or no encoding, thus assuming UTF-8 characters in the request data.
 
: '''ns_register_encoding''' command enables mapping of method/URL combinations to specific charset encodings used to decode the request. If no mapping exists for a given method/URL, the server will use that defined for the virtual server or process wide by the ''urlcharset'' config setting. This setting defaults to NULL, or no encoding, thus assuming UTF-8 characters in the request data.
 +
 +
: ''charset'' should be in the MIME format, not Tcl encoding format, i.e. iso-8859-1, not iso8859-1.
  
 
----
 
----
  
 
[[Category:Documentation]] [[Category:Core Tcl API]]
 
[[Category:Documentation]] [[Category:Core Tcl API]]

Latest revision as of 02:05, 20 June 2010

NAME

ns_register_encoding - Map method/URL combination to a specific charset encoding for decoding the request (new in AOLserver 4.5)

SYNOPSIS

ns_register_encoding ?-noinherit? method URL charset

DESCRIPTION

ns_register_encoding command enables mapping of method/URL combinations to specific charset encodings used to decode the request. If no mapping exists for a given method/URL, the server will use that defined for the virtual server or process wide by the urlcharset config setting. This setting defaults to NULL, or no encoding, thus assuming UTF-8 characters in the request data.
charset should be in the MIME format, not Tcl encoding format, i.e. iso-8859-1, not iso8859-1.