//okhttp/okhttp3/MediaType/charset
charset¶
[jvm]\
fun charset(defaultValue: Charset? = null): Charset?
Returns the charset of this media type, or defaultValue if either this media type doesn’t specify a charset, or if its charset is unsupported by the current runtime.