Eclipse中改动jsp文件的编码格式以及字体大小

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/SilentWu/article/details/78054136


Eclipse中改动jsp文件的编码格式

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1>HELLOWORLD你好世界</h1>
</body>
</html>

初始创建jsp文件编码格式默认为ISO-8859-1 现在需要把编码改成utf-8

然后再进行设置,在eclipse上选择Window-》Preferences-》Web-》JSP Files 然后再进行设置就OK了



Eclipse中改动jsp文件字体大小

Window-》Preferences-》General-》Appearance-》Colors  and  Fonts-》

Basic-》TextFont 之后就可以设置了



猜你喜欢

转载自blog.csdn.net/SilentWu/article/details/78054136