[thelist] Problems with parsing. (Apache)

Samir M. Nassar nassarsa at redconcepts.net
Sun Mar 31 15:56:01 CST 2002


Thank you Mike.

I should have RTFM'd a bit more.

The solution to the problem is not to use <?xml ... ?> at all. At least
in this case where it is not needed.

I guess the preffered method is to use

<snip>
<?xml version="1.0" encoding="utf-8" ?>
</snip>

to declare your character encoding.

But you can just use:

<snip>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</snip>

This validates at XHTML 1.0 Strict and Transitional

<tip>
When setting up the server to parse <? ... ?> for the short form of PHP
take care to make sure you have no <?xml ...?> in your code as that will
stop the server from parsing the pages.

example: <?xml version="1.0" encoding="utf-8" ?>

If you want your pages to validate as XHTML use:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Otherwise disable parsing the short form <? ... ?> and so that the long
form is used <?php ... ?> or <?xml ... ?>
</tip>

--
Samir M. Nassar - nassarsa at redconcepts.net
RedConcepts.NET - Open Source, Public Service
'Open Source, Open Systems, Open Borders, Open Minds'
Fingerprint = 4D04 E209 3FE5 DA25 A873 DD79 BD77 4511 BB2B AB9F




More information about the thelist mailing list