Is the encoding name UTF8 or UTF-8? September 1, 2023 by Tarik Easier to use StandardCharsets.UTF_8 as it saves you having to deal with UnsupportedEncodingExceptions