Home > Article > Web Front-end > Garbled characters in the browser_html/css_WEB-ITnose
I wrote an htm file with charset=gbk in it. It was written in eclipse. The encoding of the properties of the file is utf-8. In this way, the htm has no garbled characters. However, when accessed in the browser, garbled characters appear. If I put charset If it is consistent with the properties, garbled characters will appear in the code<%@ page language="java" contentType="text/html; charset=gbk"pageEncoding="gbk"%> This cannot be used for htm files, please advise. How should everyone solve it
<%@ page contentType="text/html; charset=utf-8"%>
< ;%@ taglib prefix="s" uri="/struts-tags"%>
Put this up and see if it works!
How to create struts-tags, it has nothing to do with struts
<%@ taglib prefix="s" uri="/struts-tags"%>
You can remove this line, this is just on my side!