Re: [NH] DOCTYPES and content-type
- WV-Mike wrote:
> The more I read about this ( again), the more confused I get.This is fine, as long as your page DOES validate as HTML 4.01 strict.
> I have this for my DOCTYPE:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> And this for Content-type:Both are correct. Which one to use depends on whether you are using
> <meta http-equiv="Content-type" content="text/html; charset=US-ASCII">
> Is that OK?
> Or is this preferrable:
> <meta http-equiv="content-type" content="text/html; charset=UTF-8">
UTF-8 to encode "high" characters (such as "smart quotes") in your page.
There are other possible values, too -- although they might be less
But using <meta http-equiv> is a kinda fallback and a bit of a hack. The
recommended way to indicate encoding is by means of the HTTP headers.
Those are set up in your web server software.
> Is there a relationship between the DOCTYPE and Content-type.Not really.
- Obrigado Marcelo, Thank you.
This should help a lot in beginning to understand tidy.
Too many options galore! http://tidy.sourceforge.net/docs/quickref.html
But what I really need to do is pare it down to simply converting to UTF-8
at the end of the publishing process.
To the Marvelous NoteTab developers, BIG REQUEST - Native UTF-8 support in
NTP. At least on Win 2000/XP/Vista which I believe are Unicode based
From: firstname.lastname@example.org [mailto:email@example.com] On Behalf
Of Marcelo de Castro Bastos
Sent: Sunday, November 11, 2007 1:41 PM
Subject: Re: [NH] DOCTYPES and content-type
Interviewed by CNN on 11/11/2007 14:53, Corl DeLuna told the world:
> Hi Marcelo,would
> Would you please share the full parameters of your tidy.cfg file? This
> be a big help as I become familiar with tidy.No problemo, I restricted myself to a few lines in the previous message
in order to focus on the issue. The full thing follow below. Note that
most lines are commented out-- I did it this way so I don't have to read
a separate file every time I want to make a change. I don't remember
right now if there are more options, but I don't think so.
You can get some more documentation on this using the Tidy command-line
help (tidy -help for the command-line options, tidy -help-config for the