When exporting an excel file through pandas, you will be prompted with illegalcharactererror. It is found that it is due to an encoding problem. This error can be optimized by modifying the text encoding to be written