Si je convertis un simple objet JavaScript en chaîne, tous les caractères spéciaux seront convertis en code hexadécimal.La sérialisation d'objet Javascript avec toSource() convertit des caractères spéciaux en code hexadécimal - comment inverser?
function O() {
this.name = "<üäö!";
}
var myObject = new O();
console.log(myObject.toSource());
Résultat:
{name:"<\xFC\xE4\xF6!"}
Comment puis-je éviter cela ou convertir tous les caractères hexadécimaux Retour à caractères UTF8?