note 83973 added to ref.fileinfo

From: Date: Sat, 21 Jun 2008 06:00:48 +0000
Subject: note 83973 added to ref.fileinfo
Groups: php.notes 
Request: Send a blank email to php-notes+get-140635@lists.php.net to get a copy of this message
If finfo_file() returns a mime type that also includes a character set definition (separated by a semi-colon), like: text/plain; charset=us-ascii Then you'll probably want to leave the charset definition in with the mime type, particularly if you're using the resulting string in an HTTP Content-Length header. The HTTP standard specifically allows for this, see: http://www.w3.org/International/O-HTTP-charset It seemed as if some of the previous commenters were trying to remove the charset. ---- Server IP: 208.69.120.35 Probable Submitter: 76.98.191.204 ---- Manual Page -- http://www.php.net/manual/en/ref.fileinfo.php Edit -- https://master.php.net/note/edit/83973 Del: integrated -- https://master.php.net/note/delete/83973/integrated Del: useless -- https://master.php.net/note/delete/83973/useless Del: bad code -- https://master.php.net/note/delete/83973/bad+code Del: spam -- https://master.php.net/note/delete/83973/spam Del: non-english -- https://master.php.net/note/delete/83973/non-english Del: in docs -- https://master.php.net/note/delete/83973/in+docs Del: other reasons-- https://master.php.net/note/delete/83973 Reject -- https://master.php.net/note/reject/83973 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#140635) next »