You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a "white list" of encodings that are well-known, canonically named and are guaranteed to work in all languages
add a "grey list" of encodings which are known to be aliases and non-canonical spellings; for these, ksc would map them into canonical names in all languages, and issue a warning to the user
add a "black list" of encodings that should not be allowed; using these should break the build and clear error should be given to the user
For now we'll only do:
ascii
UTF family of encodings
iso-8859-xx family of encodings, where xx is [1..16]
Considering this implemented, at least it its first form. We've got a few encodings that we consider canonical, this list can be expanded further as and when necessary.
Activity
arekbulski commentedon Mar 26, 2018
What would be the status of UTF16/32? They are still not supported per #187 .
generalmimon commentedon Jul 1, 2022
This is how we can look what unusual
encodings are used in the wild to get a better idea - GitHub Search:-org:kaitai-io extension:ksy "encoding" NOT "encoding: ascii" NOT "encoding: utf-8"GreyCat commentedon Jul 12, 2023
Following @generalmimon's suggestion, here's the updated query which seem to work in 2023: https://github.com/search?q=-org%3Akaitai-io+path%3A*.ksy+%22encoding%3A%22+NOT+%22encoding%3A+ascii%22+NOT+%22encoding%3A+utf-8%22&type=code
GreyCat commentedon Jul 14, 2023
Considering this implemented, at least it its first form. We've got a few encodings that we consider canonical, this list can be expanded further as and when necessary.