Function
zope.app.file.browser.file.extractCharset

Signature

extractCharset(content_type)

Documentation String

Extract charset information from a MIME type.

>>> extractCharset('text/plain; charset=US-ASCII')
'US-ASCII'
>>> extractCharset('text/html; charset=ISO-8859-1')
'ISO-8859-1'
>>> extractCharset('text/plain')
'UTF-8'