简体   繁体   English

jsonrpc响应中的西里尔符号

[英]Cyrillic symbols in jsonrpc response

Using Android Studio and alexd-jsonrpc client I recieve a response, where cyrillic symbols looks like: 使用Android Studioalexd-jsonrpc客户端,我收到响应,其中西里尔符号如下所示:

{..."ticket_info=ÐÐ¾ÐºÑ 1"...}

instead of: 代替:

{..."ticket_info=Мойщик 1"...}

How can i decode this to cyrillic? 如何将其解码为西里尔字母?

JSONRPC request code: JSONRPC请求代码:

JSONRPCClient client = JSONRPCClient.create(_server, JSONRPCParams.Versions.VERSION_2);
client.setConnectionTimeout(2000);
client.setSoTimeout(2000);
_workplaceList = client.callJSONArray("GetWorkplaceList", companyID);

It looks like an encoding problem. 看起来像是编码问题。 Verify that the service is encoding the JSON-RPC response as UTF-8 and that JSONRPCClient is configured to expect UTF-8. 验证服务是否将JSON-RPC响应编码为UTF-8,并且已将JSONRPCClient配置为期望UTF-8。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM