Anchor bug with #039; character
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Document</title>
</head>
<body>
<a href="data:text;charset=utf-8,Start # This will be skipped" download="myfile.csv">Download</a>
</body>
</html>
JavaScript
var t = 'حانیهمحمدیان:)''!,میهمان,2:17:57, The rest';
$('a')[0].href = 'data:text;charset=utf-8,'+encodeURIComponent(t);