Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Newbie : Charset with W3C HTML validator

Reply
Thread Tools

Newbie : Charset with W3C HTML validator

 
 
Paul Blay
Guest
Posts: n/a
 
      12-09-2003
I got this message

Note: The HTTP Content-Type header sent by your web browser (unknown) did not contain a "charset" parameter,
but the Content-Type was one of the XML text/* sub-types (text/xml). The relevant specification (RFC 3023)
specifies a strong default of "us-ascii" for such documents so we will use this value regardless of any encoding you
may have indicated elsewhere. If you would like to use a different encoding, you should arrange to have your
browser send this new encoding information.

What do I need to fix that? I have

<?xml version="1.0" encoding="Shift_JIS" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja"> <head>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=shift_jis" />

at the start of the page.

(P.S. Yes, I probably do have no idea what I'm doing )
 
Reply With Quote
 
 
 
 
brucie
Guest
Posts: n/a
 
      12-09-2003
in post <news:br4bb4$dkv$1$>
Paul Blay said:

> Note: The HTTP Content-Type header sent by your web browser (unknown)
> did not contain a "charset" parameter, What do I need to fix that?


configure your server to send the correct charset

> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML


is there any reason for using XHTML?

please adjust your word wrap to something around 75 characters.


--
brucie
09/December/2003 10:46:11 pm kilo
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      12-09-2003
brucie <> wrote:

>> Note: The HTTP Content-Type header sent by your web browser
>> (unknown) did not contain a "charset" parameter, What do I need to
>> fix that?

>
> configure your server to send the correct charset


Well, the complaint refers to a _browser_, which is somewhat odd, but
maybe the OP used a file submit feature to send a document for
validation. So apparently the only thing, apart from using a browser
that implements file submission better (and somehow manages to send the
Content-Type header needed), is to use the validator's interface for
setting the "charset".

At http://validator.w3.org/file-upload.html there's a pulldown menu
labelled "Encoding". And luckily shift_jis (which the OP's document
uses) is listed there as an alternative.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
Paul Blay
Guest
Posts: n/a
 
      12-09-2003
"Jukka K. Korpela" wrote ...
> At http://validator.w3.org/file-upload.html there's a pulldown menu
> labelled "Encoding". And luckily shift_jis (which the OP's document
> uses) is listed there as an alternative.


So there is.

I hadn't noticed the ' Extended File Upload Interface ' link.
 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      12-09-2003
in post <news:Xns944C9D93C1C2Fjkorpelacstutfi@193.229.0.31 >
Jukka K. Korpela said:

>> configure your server to send the correct charset


> Well, the complaint refers to a _browser_,


oh, i didn't read it that closely.

--
brucie
09/December/2003 11:30:19 pm kilo
 
Reply With Quote
 
Andreas Prilop
Guest
Posts: n/a
 
      12-09-2003
"Paul Blay" <> wrote:

> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=shift_jis" />


This is nonsense since it comes too late. If you are using XHTML 1.1,
you need to specify the Content-Type in the HTTP header.

Please restrict your line length to about 70 characters!
 
Reply With Quote
 
Toby A Inkster
Guest
Posts: n/a
 
      12-09-2003
Andreas Prilop wrote:

> This is nonsense since it comes too late. If you are using XHTML 1.1,
> you need to specify the Content-Type in the HTTP header.


Or use one of the character sets that all XML processors are *required* to
understand (utf-8, utf-16 and proper subsets of them, such as us-ascii)
and almost guaranteed to recognise without a declaration of any kind.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me - http://www.goddamn.co.uk/tobyink/?page=132

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript charset <> page charset optimistx Javascript 2 08-15-2008 12:42 PM
W3C html validator flags error in javascript xyZed HTML 4 03-27-2006 04:54 PM
Problem with w3c validator in script definition of doPostBack Alfonso Alvarez ASP .Net 2 05-13-2004 07:47 AM
W3C Validator Icon and W3C Valdiator page Frank HTML 9 05-03-2004 09:32 AM
W3C Validator xeno HTML 1 06-28-2003 01:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57