artblocks-starter-template icon indicating copy to clipboard operation
artblocks-starter-template copied to clipboard

Non-utf8 script encoding

Open eyaler opened this issue 3 years ago • 1 comments

For my script to work correctly I need it to be loaded with charset=cp1252 (aka ascii, aka latin1), instead of the currently defined utf8. The script makes use of ascii128-256 to store compressed data as bytes and loading it with utf8 turns all of that into U+fffd replacement character, literally rendering it useless. As I could not find any prior restriction in the on-boarding docs regarding script encoding, I would like to kindly ask for the addition of a custom scriptCharset to support scripts which are not utf8 compatible. e.g change in index.hbs#L38: <script src="./js/pieces/{{scriptName}}" charset="{{scriptCharset}}"></script>

eyaler avatar Mar 23 '22 19:03 eyaler

this is to allow the use of crEnc in my ztml pipline, but as a fallback you can also use to less efficient base125

eyaler avatar Jun 21 '22 17:06 eyaler