|
Posted by =?ISO-8859-1?Q?Fran=E7ois_Patt on October 6, 2007, 10:18 am
Please log in for more thread options Harlan Messinger a écrit :
> François Patte wrote:
>> Bonjour,
>>
>> I am wondering why the @charset rule is not working for me.
>>
>> I put at the early beginning of my index.css file:
>>
>> @charset "utf-8";
>>
>> no line before....
>>
>> and in every html file:
>>
>> <link rel="STYLESHEET" href="index.css">
>>
>> Everything is OK for all style definitions made in the index.css
>> (background, fonts style, size, and so on....
>>
>> Only the charset definition is not working.... Browsers always return
>> ISO8859-1!!!
>
> The @charset rule specifies only the encoding of the stylesheet. It
> doesn't specify the encoding of the web page that links to the
> stylesheet. It can't--the page's content can be completely processed and
> the document model completely built in memory by the time the stylesheet
> gets to the browser.
Thanks to all. I did not understand that this declaration was limited to
the css file only...
And now I don't understand why it is necessary to declare the charset of
the css file.
--
François Patte
Université Paris 5 - Paris
|