mirror of
https://github.com/InsanusMokrassar/TelegramBotAPI.git
synced 2024-11-22 08:13:47 +00:00
force UTF-8 usage for responses decoding
This commit is contained in:
parent
bed60720d3
commit
711410c426
@ -6,6 +6,7 @@
|
|||||||
some default library
|
some default library
|
||||||
* All proxy help methods was removed . They are will be replaced in separated project
|
* All proxy help methods was removed . They are will be replaced in separated project
|
||||||
* `Ktor` version `1.1.3` -> `1.1.4`
|
* `Ktor` version `1.1.3` -> `1.1.4`
|
||||||
|
* Requests results now always decoding as `UTF-8`
|
||||||
|
|
||||||
## 0.13.0 Telegram Polls
|
## 0.13.0 Telegram Polls
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class KtorRequestsExecutor(
|
|||||||
if (call == null) {
|
if (call == null) {
|
||||||
throw IllegalArgumentException("Can't execute request: $request")
|
throw IllegalArgumentException("Can't execute request: $request")
|
||||||
}
|
}
|
||||||
val content = call.response.content.toByteArray().toString(Charset.defaultCharset())
|
val content = call.response.content.toByteArray().toString(Charsets.UTF_8)
|
||||||
val responseObject = jsonFormatter.parse(
|
val responseObject = jsonFormatter.parse(
|
||||||
Response.serializer(request.resultSerializer()),
|
Response.serializer(request.resultSerializer()),
|
||||||
content
|
content
|
||||||
|
Loading…
Reference in New Issue
Block a user