If you ran into error when downloading to excel in Moodle, the fix is
Go to the moodle/lib/excellib.class.php
Then find these two strings and commented out
//$this->pear_excel_workbook->setVersion(8)
//str = $textlib->convert($str, current_charset(), 'utf-16le');