MOD:优化编码格式utf-8
This commit is contained in:
@@ -121,7 +121,7 @@ public class MainVerticle extends AbstractVerticle {
|
|||||||
// 返回数据
|
// 返回数据
|
||||||
String jsonString = Json.encode(vodResult);
|
String jsonString = Json.encode(vodResult);
|
||||||
req.response()
|
req.response()
|
||||||
.putHeader("content-type", "application/json")
|
.putHeader("content-type", "application/json;charset=utf-8")
|
||||||
.end(jsonString);
|
.end(jsonString);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -147,7 +147,7 @@ public class MainVerticle extends AbstractVerticle {
|
|||||||
// 返回数据
|
// 返回数据
|
||||||
String jsonString = Json.encode(search);
|
String jsonString = Json.encode(search);
|
||||||
req.response()
|
req.response()
|
||||||
.putHeader("content-type", "application/json")
|
.putHeader("content-type", "application/json;charset=utf-8")
|
||||||
.end(jsonString);
|
.end(jsonString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user