<% @ page contentType = "text / html; charset = UTF-8"%>
<% @ page language = "java" import = "java.io.File, java.io.FileReader, java.io.BufferedReader, java.io. *" ; pageEncoding = "UTF-8"%>
but IE open at the beginning of the page ( top ) is garbled
( garbled Dbcontent-Length: 433 Date: Sat with a date )

Seek expert to solve
server is Tomcat5.5 jdk 1.5
Before
good today, this question arises server restart
------ Solution ----------------------- ---------------------
in tomcat with a landlord has not set the encoding format ?
------ Solution ---------------------------- ----------------
<% @ page language = "java" import = "java.sql. *, java.util. * "pageEncoding =" UTF-8 "%>
I generally no problem with this , and you try , there may not be a problem head ah
------ Solution ---------------- ----------------------------
can try request, there is a way to set the encoding format specified value !
------ For reference only -------------------------------------- -
added , there is always still the same at the beginning of paragraph garbled
------ For reference only ------------------- --------------------
not the beginning or garbled
------ For reference only ---------------------------- -----------
is HTTP header problem, but why is garbled but also shows up
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Set-Cookie:
Content-Type: text / html; charset = utf-8
Content-Length: 425
Date: Thu, 04 Mar 2010 02:42:41 GMT
------ For reference only ------------- --------------------------

Eclipse configured yet ?
没有评论:
发表评论