Note about Java >= 7

Note that Charsets should be used only when working with Java 6 - which might sounds strange in 2015, but believe me, it’s not that uncommon in the enterprise world… Anyway, with Java 7 and above, you can use the built-in class StandardCharsets, which has exactly the same API and behavior.