I recently added a CSV-download button that takes data from database (Postgres) an array from server (Ruby on Rails), and turns it into a CSV file on the client side (Javasc
It could be a problem in your server encoding.
You could try (assuming locale english US) if you are running Linux:
sudo locale-gen en_US en_US.UTF-8 dpkg-reconfigure locales