HttpServletResponse PrintWriter中文乱码解决方法
HttpServletResponse使用PrintWriter输出中文的时候,如果不设置流的编码就会产生乱码,PrintWriter直接输出的字符流首先使用"response.setCharacterEncoding(charset)"设置字符以什么样的编码输出到浏览器,如果不设置则默认是ISO-8859-1,这个是不支持中文的。
Posted 2021-05-01 09:19:42 by admin ‐ 1 min read
Markdown Syntax Guide
This article offers a sample of basic Markdown syntax that can be used in Zola content files, also it shows whether basic HTML elements are decorated with CSS in a Zola theme.
Posted 2021-04-20 09:19:42 by Public ‐ 3 min read