Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » The content type in preference page can't change the default encoding?
The content type in preference page can't change the default encoding? [message #1386655] Thu, 19 June 2014 08:46 Go to next message
Alex Liu is currently offline Alex LiuFriend
Messages: 2
Registered: June 2014
Junior Member
My JSP file's default page encoding and charset are ISO-8859-1, so when I hava some Chinese chars in the page, I will receive some errors, so I want to change the default encoding of the jsp files. at first I use "Windows-->Preferences-->Content Types-->Default Encoding", I changed it into UTF-8, however, when I created a new jsp file the default page encoding and charset are still ISO-8859-1:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

</body>
</html>


THEN, I change the "Windows-->Preferences-->Web-->JSP Files" and I change the encoding into UTF-8, and this time, when I create a new jsp file the page encoding and charset are UTF-8.
what's the difference between "Wondows-->Preferences-->General-->Content Types" and "Windows --> Preferences --> Web", why the former configuration can not change the default page encoding and charset of the JSP files?
Re: The content type in preference page can't change the default encoding? [message #1386692 is a reply to message #1386655] Thu, 19 June 2014 13:48 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Moving this to the Web Tools forum.
Previous Topic:Servlet class files not included in exported war
Next Topic:JSDT Extension: how to filter Project path dynamically?
Goto Forum:
  


Current Time: Fri Apr 26 11:50:33 GMT 2024

Powered by FUDForum. Page generated in 0.03064 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top