Skip to content

Remove unnecessary try/catch blocks - #17

Open
TheRamenChef wants to merge 1 commit into
jeremyh:masterfrom
TheRamenChef:patch-1
Open

Remove unnecessary try/catch blocks#17
TheRamenChef wants to merge 1 commit into
jeremyh:masterfrom
TheRamenChef:patch-1

Conversation

@TheRamenChef

Copy link
Copy Markdown

As an alternative to referring to the charset by name, which throws a checked exception, there is the StandardCharsets class which contains the actual Charset instance you're looking for.

Instead of using the name "UTF-8", there happens to be a class with various charsets, including but not limited to UTF-8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant