|The content type in preference page can't change the default encoding? [message #1386655]
||Thu, 19 June 2014 08:46
| Alex Liu
Registered: June 2014
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"
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
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?
Powered by FUDForum
. Page generated in 0.02585 seconds