I have these lines in my template file "base.html", and save the template file as "utf-8" format as I want to support Chinese characters.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <HEAD><TITLE>My amzing site</TITLE> <META http-equiv=Content-Type content="text/html; charset=utf-8" /> <LINK media=screen href="/photoes/media/sub.css" type=text/css rel=stylesheet> <STYLE type=text/css>.style1 { COLOR: #ff0000 } </STYLE> </HEAD> I type "python manage.py" to start web service. When I used MS IE6.0 to visit my server, the output web page displayed quite strange ( the main content does not appear in the center of the webpage). But the webpage displayed correctly when I used Firefox. I examined the generated webpage and found nothing abnormal. However, strange things happened when I downloaded the webpage to my local directory("D:\file\") from "127.0.0.1:8000". If I downloaded the webpage using firefox, everything worked fine. But if I used MS IE6.0, the downloaded webpage lost the html header dtd declaration "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" If I open the webpage from my local directory ("D:\file\mysite.html"), it displayed also abnormally just like the same as I mentioned above. After I manually added the lost dtd declaration to ("D:\file \mysite.html"), the webpage can displayed correctly as Firefox. My questions are: 1) why does my webpage displays not correctly using MS IE 6.0. 2) why does the dtd declaration get lost when I download the page to my local directory ("D:\file\"). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---