-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KotlinxSerializer fails to parse JSON on iOS #632
Comments
@samus I'm running into this problem when building an iOS framework with ktor. Since you can run your project on iOS, could you please share the configuration that you use to compile the project? I'm looking for kotlin_version, kotlin_native_version, ktor_version and serialization_version. Thank you in advance! |
I can actually share the full code since it is just a demo app for conference talk I'm giving soon. https:/samus/mpp_chuck_demo |
Fixed in |
The utf-8 charset parameter should be passed to the readText method in the response otherwise an error will happen on iOS complaining that the character set is not utf-8 which is required for JSON.
KotlinXSerializer.kt
val text = response.readText(charset = Charsets.UTF_8)
The text was updated successfully, but these errors were encountered: