-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add user callback for handling invalid characters. #53
Comments
Any news on this? This would be a great feature to have. |
I agree, I don't really have time to do it now. The main obstacle is that we need to reimplement all the native Node encodings from scratch to support this feature and it's not easy. |
Yes, would also be interested in this. I think this would enable VS Code to implement a dialog like this one: Refs: microsoft/vscode#44505 |
Maybe re-encoding to original charset and checking that input and regenerated string are equals? |
Inspired by ICU, something like:
Probably, some default handlers would also be nice (always throwing, always returning '?', trying to transliterate).
The text was updated successfully, but these errors were encountered: