I am converting exporting some database values to excel using phpexcel. When i echo the value everything works fine but when i am trying to export the value to excel for example The Westminster Terrace,Yau Lai Rd Hong Kong it just print the same in excel whereas if i echo it prints The Westminster Terrace, Yau Lai Rd , Hong Kong.
The database has utf8_general_ci collation. I had used the following code .
foreach ($data as $question) {
$c = $c + 1;
//echo $question['their_answer'];
$objPHPExcel -> setActiveSheetIndex(0) -> setCellValue($x . $d, $question['their_answer']);
$x++;
}
How to print the same in excel column as echoed any idea?
Thanks
Somdeb
and are entities, I think control characters. When you sayWhen i echo the value everything works fineare you in a browser? If so the browser is rendering those. Take a look at the source and it will be the same.