Plugin Support for UTF-8
-
Hey There,
Just used this great plugin and it works great.just one thing, in the Excel export he don’t work well with Latin Characters.
so i fixed it.
i fix it in file: lib/cf7_adb.class.php
Line: 77//header("Content-Disposition: attachment; filename=\"$filename\""); //header("Content-Type: application/vnd.ms-excel;"); //headers header('Pragma: public'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); header('Content-Description: File Transfer'); header('Content-Type: text/csv'); header("Content-Disposition: attachment; filename=\"$filename\""); header('Content-Transfer-Encoding: binary'); //open file pointer to standard output $fp = fopen('php://output', 'w'); //add BOM to fix UTF-8 in Excel fputs($fp, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) )); fclose($fp);
Hope it works well.
Good luck!
- The topic ‘Plugin Support for UTF-8’ is closed to new replies.