guessEncoding

fun guessEncoding(bytes: ByteArray, hints: Map<DecodeHintType, *>?): String

Return

name of guessed encoding; at the moment will only guess one of: "SJIS", "UTF8", "ISO8859_1", or the platform default encoding if none of these can possibly be correct

Parameters

bytes

bytes encoding a string, whose encoding should be guessed

hints

decode hints if applicable