RE: [WSG] Article: MIME and Content Negotiation

2006-01-18 Thread Richard Ishida
a/ http://www.w3.org/International/ http://people.w3.org/rishida/blog/ http://www.flickr.com/photos/ishida/ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Karl Dawson Sent: 16 January 2006 09:21 To: wsg@webstandardsgroup.org

Re: [WSG] Article: MIME and Content Negotiation

2006-01-17 Thread Anders Nawroth
designer skrev: So I made a simplified version of my opening page (removed counters and other impedimenta) and removed the meta tags. All I got was Chinese and gobbledegook! So I uploaded it to: http://www.rhh.myzen.co.uk/rhh/gam/test.php I was stunned to find that it works a treat when

Re: [WSG] Article: MIME and Content Negotiation

2006-01-17 Thread Lachlan Hunt
designer wrote: So I made a simplified version of my opening page (removed counters and other impedimenta) and removed the meta tags. All I got was Chinese and gobbledegook! So I uploaded it to: http://www.rhh.myzen.co.uk/rhh/gam/test.php Did it look anything like this? http://software.hix

Re: [WSG] Article: MIME and Content Negotiation

2006-01-17 Thread designer
Hi Lachlan, Philippe, and all, So I made a simplified version of my opening page (removed counters and other impedimenta) and removed the meta tags. All I got was Chinese and gobbledegook! So I uploaded it to: http://www.rhh.myzen.co.uk/rhh/gam/test.php I was stunned to find that it works

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Lachlan Hunt
designer wrote: However, I remain confused in the particular case of the PHP approach. The PHP looks to see "if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml"))" and on that basis it describes the appropriate prolog, mimetype and charset. So the final three lines of the php code (whe

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Philippe Wittenbergh
On 16 Jan 2006, at 11:53 pm, designer wrote: However, I remain confused in the particular case of the PHP approach. The PHP looks to see "if(stristr($_SERVER ["HTTP_ACCEPT"],"application/xhtml+xml"))" and on that basis it describes the appropriate prolog, mimetype and charset. So the fin

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Lachlan Hunt
Paul Novitski wrote: At 04:02 AM 1/16/2006, Lachlan Hunt wrote: (The charset parameter is only really needed for text/* media types, for XML served with an application/* media type, the XML declaration is recommended for use instead which may be omitted for UTF-8 and UTF-16) http://lachy.id.au

[WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Simon Jessey
"Comments, especially error-spotting and general "bravo" very welcome"   One minor inaccuracy. The article written by Neil Crosby is based on an article I wrote in October of the previous year. Oddly enough, it was Russ Weakely who badgered me into writing it in the first place.    Simon Jes

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Paul Novitski
At 04:02 AM 1/16/2006, Lachlan Hunt wrote: (The charset parameter is only really needed for text/* media types, for XML served with an application/* media type, the XML declaration is recommended for use instead which may be omitted for UTF-8 and UTF-16) http://lachy.id.au/log/2006/01/content-t

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread designer
Lachlan Hunt wrote: [snip] Did you read my article [1] which Rimantas referred you to? That explains what you're supposed to do. You need to use real HTTP headers, not the inferior meta element. The end of that article links to another that actually explains how to set the charset paramete

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Karl Dawson
Thanks for the feedback, I made a few amendments / corrections this morning including:xhtml-xml - D'oh! Got it right twice before :owell-formedness versus validation - Got it right once before ;-) (more coffee at proof-reading time) On 16/01/06, Lachlan Hunt <[EMAIL PROTECTED]> wrote: > # The XML P

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Lachlan Hunt
Karl Dawson wrote: "From the Top" is a series of articles that I am publishing to concisely explain how and why to construct a high quality, web-standards compliant head section for a web page. The second article, just released, examines MIME and Content Negotiation. http://www.thatstandardsg

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Lachlan Hunt
designer wrote: I have been using Neil Crosby's PHP approach on [1] (see signature, below) and it works 'OK', BUT, if I omit the meta tag: ... Lachlan says this is simply incorrect, so I'm a bit confused by all this. Did you read my article [1] which Rimantas referred you to? That explain

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Karl Dawson
Hi Bob,I modified Neil's script (I'm no PHP scripter though so it took a little trial and error) and the code I published worked for me. My test site is on the home PC but if I recall correctly I think you need to remove any hardcoding of or similar that you may have in your template / page and pu

Re: [WSG] Article: MIME and Content Negotiation

2006-01-16 Thread designer
Hi Karl, An interesting piece, well done. However, it still leaves me with some confusion. I have been using Neil Crosby's PHP approach on [1] (see signature, below) and it works 'OK', BUT, if I omit the meta tag: from it's usual place, I get Chinese characters everywhere. In other wor

[WSG] Article: MIME and Content Negotiation

2006-01-16 Thread Karl Dawson
Hi, Apologies in advance if you see this cross-posted: "From the Top" is a series of articles that I am publishing to concisely explain how and why to construct a high quality, web-standards compliant head section for a web page. The second article, just released, examines MIME and Content Ne