This is a discussion on "A complete mystery" within the Web Page Design section. This forum, and the thread "A complete mystery are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
A complete mystery
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
A complete mystery
I can't understand why, but when I run my site through the W3 validator it can't find the doctype and returns the following error
ü/strong>?þ<!DOCTYPE html PUBLIC "-//W3C//DTD... Line 1 column 0: character "ÿ" not allowed in prolog. Yet the code I have written as the doctype is: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> Does anyone know why this might happen? |
|
|
|
#2
|
|||
|
|||
|
Re: A complete mystery
try
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
#3
|
|||
|
|||
|
Re: A complete mystery
Doesn't it have to be in lower case for xhtml?
(Just guessing, haven't tried yet). |
|
#4
|
|||
|
|||
|
Re: A complete mystery
The doctype I suggested came from the W3 site so it must be ok. Let us know if that worked, maybe give us a link if it doesnt so we see if theres anything else wrong.
|
|
#5
|
|||
|
|||
|
Re: A complete mystery
I've tried both suggestions and got the same results.
The url is http://www.usdmanciano.com It's an Italian football website which I'm about to rebuild for next season. The text is in Italian - would this make a difference? Also, if I put www.usdmanciano.com into google, it shows the garbled text on the title bar. When I submitted the site on the critique section of webforumz, a few people just saw garbled pages. I'm a newcomer to webdesign and was enjoying myself until I started to discover the mysterious world of unicode. |
|
#6
|
|||
|
|||
|
Re: A complete mystery
When i go to that url all i get is the source code and its very messed up!! you have some serious issues going on. The only thing i can see is that you have
content="text/html; in your content-type meta tag when it should end with a ", dont know if that would mess it up. |
|
#7
|
|||
|
|||
|
Re: A complete mystery
I get the messed up page when I view it in FF 1.5.0.3 but I see the page when I open the link in IE 6.0.29 etc.
I saved the source through IE and viewed the page in FF but everything came out fine so this is one odd problem. Are you using a script or something that might effect ow the page is viewed in certain browsers? Or could it be a server problem? |
|
#8
|
|||
|
|||
|
I'm still scatching my head.
When I use the text editor on my FTP site using 3d-FTP I see that the code is corrupted, with some garbled characters at the beginning, then spaces between all of the characters in the code. I have copied and pasted from the notepad onto the HTML text editor on my FTP site and this seems to cure the problem but is only a quick fix solution. When I upload, I convert to binary as opposed to ASCII, because otherwise I get garbled japanese when I view the site in a browser. Maybe this is the issue? When I save my notepad codes as HTML files I have the option to save as Unicode, Unicode big endian, ANSI or UTF-8. I generally leave the default (ANSI) setting. Perhaps I should set it to UTF-8? I feel like a blind man in a darkened room |
|
#9
|
|||
|
|||
|
Re: A complete mystery
I am not much help here since I also don't have any idea what it could be but you can try saving it in the different formats as you suggested just to eliminate it as a possibility you can also try uploading the file through the host instead of the FTP to eliminate the possibility of a faulty setting in the FTP. Maybe some one with more experience will come along and turn on the lights for the rest of us.
|
|
#10
|
|||
|
|||
|
Re: A complete mystery
I've just tried your site in Firefox and it views properly so I don't know if you have changed something.
It was also ok in IE and Opera. I would note that when run through the W3C validator that it shows 191 errors, so there are certainly a few things that need to be taken care of. I take it that amongst the things you want to get rid of in the rework is the use of tables as a layout tool and the use of none standard html tags. |
|
#11
|
|||
|
|||
|
Re: A complete mystery
I have reset everything to UTF-8 and it seems to have done the trick.
I built the site as my first ever HTML project and so it's full of errors, hence the rebuild. Thanks for the help. |
![]() |
| Tags |
| complete, mystery |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Complete Site | DezMarker | Starting Out | 9 | Mar 26th, 2008 14:05 |
| Complete Noobie | Cambiker | Starting Out | 10 | Oct 23rd, 2007 19:19 |
| mystery non-appearing image | jessixcate | Graphics and 3D | 1 | Apr 14th, 2007 02:48 |
| complete newbie | jonrice | Web Page Design | 6 | Apr 25th, 2005 15:58 |