Specify encoding for newsletter previews in browser to fix entity issue

This commit is contained in:
Tautvidas Sipavičius
2016-02-23 18:00:05 +02:00
parent 11e15659ac
commit a9baecc504

View File

@ -236,7 +236,7 @@ define([
data: json,
}).done(function(response){
console.log('Should open a new window');
window.open('data:text/html,' + encodeURIComponent(response.rendered_body), '_blank');
window.open('data:text/html;charset=utf-8,' + encodeURIComponent(response.rendered_body), '_blank');
}).fail(function(error) {
console.log('Preview error', json);
alert('Something went wrong, check console');