I am using utf8 char encoding - mysqli_set_charset($con,'utf8')
in PHP file and utf8_czech_ci
in MySQL.
I am programming on Windows computer and here is no problem. When I move my PHP application to Linux server, there is problem with bad character encoding (czech characters like ščřž...) in output Excel file.