jquery.fileDownload
jquery.fileDownload copied to clipboard
Add accept-charset UTF-8 for POST requests
By default POST body should be supposed to be encoded in Latin-1/ISO-8859-1.
So if we want to pass some data with POST requests via $.fileDownload there's a possibility that server will read that data as ISO-8859-1. Usually it's not that users want. It differs from ajax request via XHR which are always in UTF-8. So it would make sense to add explicit encoding for POST request. For the case when data are being sent via hidden form it should be specified in form attribute as:
<form enctype="application/x-www-form-urlencoded;charset=UTF-8">
OR
<form accept-charset="UTF-8">
Sure, feel free to add that as an option!