When making an api call with ktor-client an error ...
# ktor
s
When making an api call with ktor-client an error while deserializing a response under iOS. The same code works fine in a jvm test. I'm modeling the app after the conference app and can't see any differences in how it's doing things versus what I'm trying.
Copy code
kotlin.IllegalArgumentException: Charset ISO_8859_1 is not supported
I solved this for now by making a copy of the KotlinxSerializer and adding a charset parameter to the
readText
call.
Copy code
val text = response.readText(charset = Charsets.UTF_8)
Is that the proper way to go or am I missing something?
e
Hi, Sam. Thanks for the report. It looks like the charset is missing on iOS. We try to check and fix it before the next release. Would be nice if you file a GitHub issue 🙂
👍 1