gpt4 book ai didi

javascript - Smartclient 支持 utf-8 字符

转载 作者:行者123 更新时间:2023-12-02 19:10:55 24 4
gpt4 key购买 nike

我有以下 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;

}

我用于标题的词在用户界面上被破坏了。如何以及在哪里为智能客户端小部件启用/配置 UTF-8?

最诚挚的问候!

最佳答案

如果您在 Javascript 代码中使用特殊字符作为文字,则必须确保 Javascript 源代码具有与主页相同的字符编码。例如,在 Notepad++ 中,您应该使用菜单“Encoding/UTF-8 without BOM”或类似菜单将其设置为 UTF-8。

关于javascript - Smartclient 支持 utf-8 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13739523/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com