Add UTF-16 option to Base64 encoder/decoder #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds the UTF-16 encoding type to the Base64 encoder/decoder
Pull request type
Please check the type of change your PR introduces:
What is the current behavior?
The Base64 encoder/decoder does not support UTF-16 encoding. This encoding is commonly used when working with PowerShell as it supports encoding commands using the
powershel.exe -EncodedCommand
option.Issue Number: DevToys-app/DevToys#661
What is the new behavior?
Other information
This only adds support for UTF-16LE with BOM (
System.Text.Encoding.Unicode
). I considered adding UTF-16LE and UTF-16BE explicitly as well, but felt that might clutter the UI with too many options. I think UTF-16LE BOM will be sufficient for most use-cases (PowerShell supports UTF-16LE with BOM).Quality check
Before creating this PR: