I used this, which is not bulletproof: ```public v...
# kotlin-fuel
m
I used this, which is not bulletproof:
Copy code
public val Response.contentTypeEncoding: String
    get() = contentTypeEncoding()

public fun Response.contentTypeEncoding(default: String = "utf-8"): String {
    val contentType: String = httpResponseHeaders["Content-Type"]?.first() ?: return default
    return contentType.substringAfterLast("charset=", default).substringAfter(' ', default)
}