csv_from_result() and rares characters?

#3
[eluser]Unknown[/eluser]
Hi! try this...

Code:
$this->load->dbutil();
$queryForCsv = $this->db->query("SELECT * FROM membership_area");
$delimiter = ";";
$dataForCsv = $this->dbutil->csv_from_result($queryForCsv, $delimiter);

//NEW LINE TO SHOW CHARACTERS PROPERLY
$dataForCsv = utf8_decode( $dataForCsv );

$pathCsv = '/clients.csv';
write_file($pathCsv, $dataForCsv);


Messages In This Thread
csv_from_result() and rares characters? - by El Forum - 07-29-2010, 12:09 PM
csv_from_result() and rares characters? - by El Forum - 07-30-2010, 03:58 AM
csv_from_result() and rares characters? - by El Forum - 02-25-2011, 08:05 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.