note 69566 added to function.fwrite

From: Date: Mon, 11 Sep 2006 07:08:41 +0000
Subject: note 69566 added to function.fwrite
Groups: php.notes 
Request: Send a blank email to php-notes+get-117002@lists.php.net to get a copy of this message
Use this to get a UTF-8 Unicode CSV file that opens properly in Excel: $tmp = chr(255).chr(254).mb_convert_encoding( $tmp, 'UTF-16LE', 'UTF-8'); $write = fwrite( $filepath, $tmp ); Use a tab character, not comma, to seperate the fields in the $tmp. Credit for this goes to someone called Eugene Murai, I found this solution by him after searching for several hours. ---- Server IP: 61.195.146.164 Probable Submitter: 220.98.175.81 (proxied: unknown) ---- Manual Page -- http://www.php.net/manual/en/function.fwrite.php Edit -- https://master.php.net/note/edit/69566 Del: integrated -- https://master.php.net/note/delete/69566/integrated Del: useless -- https://master.php.net/note/delete/69566/useless Del: bad code -- https://master.php.net/note/delete/69566/bad+code Del: spam -- https://master.php.net/note/delete/69566/spam Del: non-english -- https://master.php.net/note/delete/69566/non-english Del: in docs -- https://master.php.net/note/delete/69566/in+docs Del: other reasons-- https://master.php.net/note/delete/69566 Reject -- https://master.php.net/note/reject/69566 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#117002) next »