references:joomla.framework:document:jdocument-setmimeencodingTable of Contents
setMimeEncoding
Sets the document MIME encoding that is sent to the browser. This usually will be text/html because most browsers cannot yet accept the proper mime settings for XHTML: application/xhtml+xml, and to a lesser extent application/xml and text/xml. See the W3C note (http://www.w3.org/TR/xhtml-media-types/) for more details. Syntaxvoid setMimeEncoding ( $type )
ExamplesSet the mime type of the current document. Example global $mainframe; $document =& JFactory::getDocument(); $document->setMimeEncoding( 'application/xml' ); echo "MIME Type: " . $document->getMimeEncoding(); Might produce: Result MIME Type: application/xml |


