[ Table Of Contents | Keyword Index ]

ns_encodingfortype(n) 4.99 "NaviServer Built-in Commands"

NAME

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

TABLE OF CONTENTS

    TABLE OF CONTENTS
    SYNOPSIS
    DESCRIPTION
    COMMANDS
    EXAMPLES
    SEE ALSO
    KEYWORDS

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.

COMMANDS

ns_encodingfortype mime-type

EXAMPLES

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

SEE ALSO

nsd

KEYWORDS

ns_charsets , ns_urlcharset