// version 1.0.6 import java.util.Scanner fun main(args: Array) { val command = "cmd /c chcp" val p = Runtime.getRuntime().exec(command) val sc = Scanner(p.inputStream) println(sc.nextLine()) sc.close() }