2016-07-21 6 views
0

Ich habe Probleme mit meinem Text kodiertURL.createObjectURL und charset UTF-8

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

, wo ich gebe meine Beschreibung url ist nicht gleich und Rückkehr jak uĹźywaÄ? Was mache ich falsch?

Antwort

-1

Versuchen:

...

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

...