getContentAsString

fun getContentAsString(charset: Charset = Charsets.UTF_8): String

Return

content converted to a string using the selected encoding.

Parameters

charset

character encoding. Defaults to UTF-8.