Ns encodingfortype

From AOLserver Wiki
Revision as of 04:33, 19 June 2004 by WikiSysop (talk | contribs) (imported from WiKit id 551)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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