SyntaxFix
Write A Post
Hire A Developer
Questions
You can use Charset.defaultCharset() API or file.encoding property.
Charset.defaultCharset()
file.encoding
But if you want your own constant, you'll need to define it yourself.