There is input to read the jade file:
input#upload.(type='file', accept="text/xml, .csv") javascript:
var file = document.getElementById('upload').files[0]; var reader = new FileReader(); reader.onloadend = function(e){ var file = e.target.result; }; reader.readAsBinaryString(file); In the script I get the line:
"mail;name;ТеÑÑ" The last word is "Test". How to fix problems with encoding? And javascript and html page encoded "UTF-8".
readAsBinaryStringinstead ofreadAsText? - Peter Olson