The plug-in bootStrap-table loads the data returned from the server, which is garbled in Chinese.

bootStrap-table loads the data returned from the server, will it be garbled in Chinese?
this is the code for initializing the table
clipboard.png
**
clipboard.png
**

clipboard.png

clipboard.png

clipboard.png

javaBean

public class VideoChildTableModel {


}
htmlutf-8

clipboard.png

clipboard.png

ajax

clipboard.png

clipboard.png

I really don"t know where the problem is! It can only be the problem of this plug-in! I think there is no boss in the use of this problem! The front end really has a headache!


try the following options:
1. Quote Chinese package
< script type= "text/javascript" src= "<% = contextPath% > / scripts/bootstrap-table/locale/bootstrap-table-zh-CN.min.js" > < / script >
2. Add the following to the front end
< html lang= "zh_CN" >

<meta charset="UTF-8">

3. The backend code is returned as a stream to the front end
OutputStream out = response.getOutputStream ();
out.write (json.toString (). GetBytes ("UTF-8"));
out.flush ();
out.close ();

)

Dude


the data returned from controll is jason data, which is of direct JSONObject type and does not need to be converted to String, image.png

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34d7f-2b6c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34d7f-2b6c3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?