GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 04-Jul-2005, 03:27
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

<?xml version="1.0" encoding="ISO-8859-1"?> problem


I am using the following header on my webpages on my local servers:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

On my Mac, which I am using Apache 2.0.52, everything reads fine. On my PC, which I am using Apache 2.0.50, I have to remove
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
in order for the page to work. I get a parsing error.

I have gone through the httpd.conf files on both servers. I can't find the error.
  #2  
Old 27-Dec-2005, 03:42
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


Still need an answer.
  #3  
Old 27-Dec-2005, 06:00
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 730
admin will become famous soon enough

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


Eventhough I have nothing useful to share, I have to ask: Which browser on Windows? Internet Explorer only? Does the page load with Firefox/Opera on Windows?

Also, the Content-Type of XML files are text/xml usually, your web pages may be sending text/html instead and that may be the issue with some browsers.

If these are XHTML, maybe application/xhtml+xml is what you need, but I am not the expert.
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #4  
Old 27-Dec-2005, 10:21
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


It doesn't work on any browser on my PC. I've tried IE 6, NS 7.2, NS 8.1, and FireFox 1.0.6.

On my Mac, I've tried NS 7.2, FireFox 1.0.7 and 1.5, Camino 1.0b1, Shiira 1.1, and Safari 1.3. They all work fine.

afa,
Quote:
If these are XHTML, maybe application/xhtml+xml is what you need, but I am not the expert.
I'll check it out.
  #5  
Old 29-Dec-2005, 00:43
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


I searched for content-type info for 2 days now. I must be dumber than a box of rocks because I unable to understand where content-type info is supposed to go in the header. All I could find is that it might be the problem. Maybe if you gave me an example I could better understand it.

I still don't understand why it works on my Mac (OS X 10.3.9) with Apache 2.0.52 but it doesn't work on my PC (XP sp2) with Apache 2.0.50.
  #6  
Old 29-Dec-2005, 09:09
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


I got it!

Thanks, Admin. You steered me in the right direction. I used
Code:
<meta http-equiv="Content-Type" content="text/xhtml+xml; charset=iso-8859-1" />
. The application/xhtml+xml was incorrect, but no matter your help got me there.

I still don't know why the Mac didn't require that code. Oh, well.

Thank you again.
  #7  
Old 30-Dec-2005, 03:51
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


I spoke too soon.

The xml was only working when I loaded the webpage from the hard drive (file:///C:/...). When I load from the Apache server I still get the parsing error. It appears to be an error with the config file.

I read through both the Mac and PC config files again. Other than the basic Mac/PC server location differences I can see no problems.

Would it help if uploaded both config files?
  #8  
Old 03-Jan-2006, 06:16
admin's Avatar
admin admin is offline
Administrator
 
Join Date: Sep 2002
Posts: 730
admin will become famous soon enough

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


Did you get anywhere with this yet? What is the extension of this file? .php or .html or something else?

Quote:
Originally Posted by ListerMint
I must be dumber than a box of rocks because I unable to understand where content-type info is supposed to go in the header.

This depends, if you use a server-side scripting language like PHP, you can simply modify this header by using something like: header('Content-type: application/pdf'); see: http://www.php.net/manual/en/function.header.php

From the web server, maybe Apache, you can manipulate the headers by using the Header directive (off the mod_headers module), see: http://httpd.apache.org/docs/1.3/mod...rs.html#header
__________________
Custom BB codes you can use here:
[HTML] | [C++] | [CSS] | [JAVA] | [PY] | [VB]
  #9  
Old 03-Jan-2006, 11:11
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


I still can't figure out what is going on. The extension is .html.

I took a quick glance at the apache link. It looks like the information is way over my head. I will give it a closer look and post back.

Thanks for your help.
  #10  
Old 08-Jan-2006, 23:05
ListerMint's Avatar
ListerMint ListerMint is offline
New Member
 
Join Date: Jun 2004
Posts: 17
ListerMint is on a distinguished road

Re: <?xml version="1.0" encoding="ISO-8859-1"?> problem


Couldn't understand the information at Apache. Guess I'll give up on it. I'll just leave that code off any webpages I put on my PC. It just doesn't make any sense why it would work on my Mac server but not the PC server. Their almost identical versions of Apache.

Thanks for your help, Admin.
 

Recent GIDBlogPrepping for deployment by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 20:53.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.