0

I send Json RPC request in simple HTTP Client in IntellijIdea

POST http://localhost:8080/endpoint
Content-Type: application/json

{
  "jsonrpc": "2.0",
  "method": "getSomething",
  "id": 1,
  "params": {
    "param1": "1"
  }
}

It's valid request supposed to return error But error description contains Cyrillic symbols and it returns something like this:

...
"error":"ÐолÑзоваÑÐµÐ»Ñ Ñ ÑказаннÑм логином не найден"
...

I understand that it is something with encoding, but i don't know how to handle it

Dmitry
  • 1
  • 1

1 Answers1

0

Setting content-type of AutoJsonRpcServiceImplExporter (when bean creating) to "application/json-rpc;charset=UTF-8" fixed the problem May be it will help somebody

Dmitry
  • 1
  • 1