-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Catch NotSupportedException trying GetEncoding (#146)
* Catch NotSupportedException trying GetEncoding A rare occurrence of aNotSupportedException will happen when the encoding is UTF-7. The exception message is "NotSupportedException: Support for UTF-7 is disabled. See https://aka.ms/dotnet-warnings/SYSLIB0001 for more information." Eliminating UTF-7 usage is far from the scope of this commit. But catching the NotSupportedException allows the library to continue. * added tests Co-authored-by: JamesMc <jamesjohnmcguire@gmail.com> Co-authored-by: Julian Verdurmen <304NotModified@users.noreply.github.com>
- Loading branch information
1 parent
30a7b17
commit 87f1a83
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters