Send the query request to the http server built by netty through the browser, the server-side response contains Chinese, and the Chinese garbled code is displayed in the browser, how to solve it?

send a query request to the http server built by netty through the browser. The server-side response contains Chinese, and the Chinese garbled code is displayed in the browser. How to solve it?

Dec.30,2021

add Content-Type header to specify encoding


return the result and add the header, of content-type to specify the encoding in it

response.headers (). Set (CONTENT_TYPE, "text/plain; charset=utf-8");

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-1b3b19f-2c250.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-1b3b19f-2c250.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?