NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_encodingfortype(n) 5.0.0a naviserver "NaviServer Built-in Commands"

Name

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

Table Of Contents

Synopsis

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.

COMMANDS

ns_encodingfortype mimetype

EXAMPLES

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

See Also

nsd

Keywords

i18n, ns_charsets, ns_urlcharset