我有以下 Smartclient JS 代码,它不能在 UI 中正确呈现 UTF-8 字符
function getGridLoadedWithDatasource(DS, DSfields) {
var statGrid = isc.ListGrid.create({
ID: "statusGrid",
autoFetchData: true,
fields: DSfields,
dataSource: DS,
canEdit: false,
autoDraw: true,
showRecordComponents: true,
showRecordComponentsByCell: true,
createRecordComponent : function (record, colNum) {
var fieldName = this.getFieldName(colNum);
if (fieldName == "btnClaim" && record["PTicketname"]=='Reklamacija') {
var button = isc.IButton.create({
height: 18,
width: 65,
//icon: "flags/16/" + record["countryCode"] + ".png",
title: "Žalba",
click : function () {
//alert("Hello man!");
isc.say("Need to draw a form here");
//getInvoiceDetailWindow(record["rednibr"],tech, ba_id);
}
});
return button;
}
}
});
return statGrid;
}
我用于标题的词在 UI 上被破坏了。如何以及在哪里为 smartclient 小部件启用/配置 UTF-8?
最好的祝福!