In the network, changing the encoding from gb2312 to gbk does not take effect for a long time, including servelt, because it is garbled by default with the servlet itself in the database.
Later, we changed the page encoding to gbk on the jsp page, but it still didn't work. We tried later because I forgot to modify the encoding settings for the header and tail pages.
Put:
<% @ Page contentType = "text/html; charset = gb2312" language = "java" %>
Changed:
<% @ Page contentType = "text/html; charset = gbk" language = "java" %>
Experience
Later I talked to sun, who is responsible for functional testing, about this bug. Sun said that he had discovered it last year and published it in QC, but at that time, the developers said they only needed to change it a little later.
However, today, we only pay attention to it because the testers did not classify bugs and did not pay more attention to important bugs by programmers and leaders, the bug should be divided into the ones that must be modified, which will affect all projects in the future and the bug above a small function will not affect the development of other projects in the future. If the bug affects all projects in the future, programmers and department leaders must pay more attention to this bug and remind programmers to modify it in time until the bug is not found.
Author: chen3888015