W3C home > Mailing lists > Public > www-validator@w3.org > February 2007

Re: "character data is not allowed here" problem with Unicode Chinese

From: olivier Thereaux <ot@w3.org>
Date: Tue, 6 Feb 2007 14:20:07 +0100
Message-Id: <2F9CA8A0-4470-43D9-83F8-257F9AF23817@w3.org>
Cc: www-validator@w3.org
To: Allan Dyer <adyer@yuikee.com.hk>


On Feb 6, 2007, at 09:15 , Allan Dyer wrote:

>
> I'd like to report a problem with the validation of Unicode Chinese  
> pages.
>
> I tried this validation:
> http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fu-
> hearts.consultancy.com.hk%2Fbg%2Fnewspaper.html
>
> and got one error:
> Error  Line 5 column 54: character data is not allowed here.
>
>     <meta name="description" content="U-hearts 兩地���心" />
> --------

The error is actually coming from your usage of the XHTML-style  
construct /> to close the <meta>, when you are using HTML 4.01. Use
<meta .... >

There is indeed a (old, which was fixed a couple of years ago and  
broke again recently - not sure yet why) bug making the validator  
highlight the wrong position in the source display, but there is no  
problem in the validator's recognition of the utf-8 string.

-- 
olivier
Received on Tuesday, 6 February 2007 13:20:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:23 GMT