charset utf8
This commit is contained in:
parent
9074619914
commit
597c0a24db
@ -24,7 +24,7 @@ class DatabaseConsumer : Consumer {
|
|||||||
throw UnsupportedOperationException()
|
throw UnsupportedOperationException()
|
||||||
}
|
}
|
||||||
override fun handleDelivery(consumerTag : String?, envelope : Envelope?, basicProperties : BasicProperties?, body : ByteArray?) {
|
override fun handleDelivery(consumerTag : String?, envelope : Envelope?, basicProperties : BasicProperties?, body : ByteArray?) {
|
||||||
val rawJson = body.toString()
|
val rawJson = body!!.toString(Charsets.UTF_8)
|
||||||
val apiObject = gson.fromJson(rawJson, ApiObject::class.java)
|
val apiObject = gson.fromJson(rawJson, ApiObject::class.java)
|
||||||
|
|
||||||
resultObjectService.addOne(apiObject)
|
resultObjectService.addOne(apiObject)
|
||||||
|
Loading…
Reference in New Issue
Block a user