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
@ojii
encoding.js is primarily designed to simply ignore errors internally and avoid throwing unnecessary errors for most processes. But seeing the need for this feature, I plan to add a fallback: 'error' option in the next release.
We have a use-case where we have to check if a given string/content is valid ShiftJIS, currently we use this:
but that is wasteful since we encode twice. It would be nice if there was an option so we could do
Would you accept a pull request to implement such a feature?
The text was updated successfully, but these errors were encountered: