Home  >  Article  >  Web Front-end  >  Garbled characters in the browser_html/css_WEB-ITnose

Garbled characters in the browser_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:001097browse

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


Reply to the discussion (solution)

<%@ 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn