sbcs codec

sbcs codec

dannvestergaarddannvestergaard Posts: 1Questions: 1Answers: 0

Hi

I recently upgraded to DT version 1.10.18. part of the downloaded JS file is sbcs codecs.

The code normally has sections if the following formats:

"cp28592": "iso88592",
"iso88593": {
"type": "_sbcs",
"chars": "€‚ƒ„‰Š‹ŒŽ‘’“”•–—˜™š›œžŸĦ˘£¤�Ĥ§¨İŞĞĴ­�Ż°ħ²³´µĥ·¸ışğĵ½�żÀÁÂ�ÄĊĈÇÈÉÊËÌÍÎÏ�ÑÒÓÔĠÖ×ĜÙÚÛÜŬŜßàáâ�äċĉçèéêëìíîï�ñòóôġö÷ĝùúûüŭŝ˙"
}

But at ie. line 51200 there is a line break before the data for the 'chars' property:

"ibm869": "cp869",
"csibm869": "cp869",
"cp922": {
"type": "_sbcs",
"chars": "
€‚ƒ„†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ¡¢£¤¥¦§¨©ª«¬­®‾°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏŠÑÒÓÔÕÖ×ØÙÚÛÜÝŽßàáâãäåæçèéêëìíîïšñòóôõö÷øùúûüýžÿ"
}

When the script loads in the browser this is reported as an mistake and script loading is stopped. I have fixed this by removing the line break.

Is this line break intentionally in the file? And what is the impact of removing the linebreak??

Answers

  • allanallan Posts: 63,455Questions: 1Answers: 10,465 Site admin

    I think the code you are referring to is part of pdfmake, which is hosted by CDNJS. I don't know what other options from the download builder you selected, but if you could let me know that would be useful so I can check what the download builder is outputting.

    Thanks,
    Allan

This discussion has been closed.