code

Returns the code of this Char.

val Char.code: Int(source)
fun main() {
    val c: Char = 'A'
    val code: Int = c.code
    println("The Unicode code point of '$c' is $code")
}

Source