when i append record including chinese get a error says TypeError: "value" argument is out of bounds
JesseWeb opened this issue · 1 comments
JesseWeb commented
let fieldDescriptors = [
{
name: 'C_ID',
type: 'C',
size: 16,
},
{
name: 'C_HM',
type: 'C',
size: 64,
}, {
name: 'C_DZ',
type: 'C',
size: 64,
},
{
name: 'N_Y',
type: 'N',
size: 4,
},
{
name: 'N_M',
type: 'N',
size: 4,
},
{
name: 'D_CB',
type: 'D',
size: 8,
},
{
name: 'N_BCCM',
type: 'N',
size: 8,
},
{
name: 'N_SCCM',
type: 'N',
size: 8,
},
{
name: 'I_CBBZ',
type: 'N',
size: 1,
}
]
{
C_ID: '',
C_HM: item.customerNumber,
C_DZ: String("测试"),
N_Y: Number(dateformat(new Date(item.logDateTime), 'yyyy')),
N_M: Number(dateformat(new Date(item.logDateTime), 'mm')),
D_CB: new Date(item.logDateTime),
N_BCCM: Number((item.number/1000).toFixed()) || 0,
N_SCCM: 0,
I_CBBZ: 1
}
JesseWeb commented
this problem is resolved , by using
unescape(encodeURIComponent(ChineseStr))