javascript - URL.createObjectURL and charset UTF-8 -


i have problem encoding text

var description = "jak używać?"          var blob = new blob([description], {              type: "text/plain;charset=utf-8;"          });          var url = url.createobjecturl(blob);          console.log(url)

where enter url description isnt same , return jak uĹźywaÄ? doing wrong?

try:

...

var blob = new blob([**"\ufeff",** description], { 

...


Comments