Hi,
I'm using the following code to display the details of the news. But in showing incorrect characters for detail news that Turkish characters. Should I not take the news directly?
// TODO: // Add comments
$.args = arguments[0] || {}; var standardWinView = $.args.standardWinView; var content = $.args.content;
var byline = content.byline; // var commentscount = content.commentscount; var date = moment(content.sysPublishDate).format('MMMM Do YYYY'); var image = Alloy.Globals.dotcms.url + '/contentAsset/image/' + content.inode + '/image/byInode/1/filter/Resize/resize_w/400'; var body = Alloy.Globals.stripHtml(content.body);
var title = content.title;
$.newByLine.text = byline; //$.newCommnets.text = commentscount; $.newDate.text = date; $.newImage.image = image; $.newStory.text = body; $.newTitle.text = title;
// Opening the window when all the content is ready Alloy.Globals.openWindow(standardWinView);