Ubuntu下无法显示中文
Closed this issue · 3 comments
LeeReindeer commented
BolexLiu commented
你看下当前代码右下角会有一个编码格式,是什么。
LeeReindeer commented
@BolexLiu 打扰了,已经解决了,是Idea的字体问题(
BolexLiu commented
嗯,代码中已经转化过utf-8格式
String json = EntityUtils.toString(resEntity, "UTF-8");
Gson gson = new Gson();
Translation translation = gson.fromJson(json, Translation.class);
//show result
showPopupBalloon(translation.toString());