Ns encodingfortype

From AOLserver Wiki
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_encodingfortype.html


NAME

ns_encodingfortype - Return the encoding implied by the given mime type string

SYNOPSIS

ns_encodingfortype mime-type

DESCRIPTION

Parses the given mime-type string to determine the character encoding implied by it. Will use the configured OutputCharset if no charset is explicitly specified in the given string.

EXAMPLES

   % ns_encodingfortype "text/plain; charset=iso-8859-1"
   iso8859-1

SEE ALSO

ns_charsets ns_urlcharset

Category Documentation - Category Core Tcl API