Re: [WSG] Unicode in Visual Studio? For xhtml, css ?

2005-07-22 Thread Terrence Wood
True it probably isn't needed in most cases, except where it may be 
included in an html file that is not utf-8 and the CSS file actually 
contains utf-8 characters. In fact, according to w3c the character 
encoding is usually reliably determined form the first few bytes of the 
file anyways [http://www.w3.org/TR/REC-CSS2/syndata.html#q23]. 
Elsewhere it is said CSS files inherit the charset from the HTML file 
in which they are included, or default to utf-8.




kind regards
Terrence Wood.

On 22 Jul 2005, at 4:59 PM, T. R. Valentine wrote:


On 21/07/05, Terrence Wood [EMAIL PROTECTED] wrote:
I don't use VS but generally UTF-8  or  UTF-8 (no bom) is the best 
bet.


Make sure you send the correct header or meta for your html files i.e.
charset=utf-8. For CSS files include as the first line: @charset
utf-8;


Why should one include that as a first line? I normally save my files
in UTF-8 format, do not use that as a first line, and have never
experienced problems with my CSS files (I regularly use a meta tag
charset=UTF-8 in my (X)HTML).

Am I missing something?

--
T. R. Valentine
The only excuse for using IE is ignorance (or testing)
(stupidity is a reason, _not_ an excuse).
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**


**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



RE: [WSG] Unicode in Visual Studio? For xhtml, css ?

2005-07-21 Thread John Lewis



Visual Studio? Honestly, who uses that? ;-) 

  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Rebecca 
  CoxSent: Thursday, 21 July 2005 9:20 a.m.To: 
  wsg@webstandardsgroup.orgSubject: [WSG] Unicode in Visual Studio? 
  For xhtml, css ?
  
  
  Hi all,
  
  I use Visual Studio to author both HTML and CSS and am 
  not sure what is the best encoding option to choose. 
  
  
  For HTML it needs to be Unicode/utf-8 but there are 4 
  different Unicode encodings to choose from!
  
  Does anyone use VS and know what a good default option 
  would be? And would you use Unicode for CSS files as 
  well?
  
  Cheers, Rebecca
  
  


Re: [WSG] Unicode in Visual Studio? For xhtml, css ?

2005-07-21 Thread Terrence Wood

I don't use VS but generally UTF-8  or  UTF-8 (no bom) is the best bet.

Make sure you send the correct header or meta for your html files i.e. 
charset=utf-8. For CSS files include as the first line: @charset 
utf-8;



regards
Terrence Wood.

**
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list  getting help
**



Re: [WSG] Unicode in Visual Studio? For xhtml, css ?

2005-07-21 Thread T. R. Valentine
On 21/07/05, Terrence Wood [EMAIL PROTECTED] wrote:
 I don't use VS but generally UTF-8  or  UTF-8 (no bom) is the best bet.
 
 Make sure you send the correct header or meta for your html files i.e.
 charset=utf-8. For CSS files include as the first line: @charset
 utf-8;

Why should one include that as a first line? I normally save my files
in UTF-8 format, do not use that as a first line, and have never
experienced problems with my CSS files (I regularly use a meta tag
charset=UTF-8 in my (X)HTML).

Am I missing something?

-- 
T. R. Valentine
The only excuse for using IE is ignorance (or testing)
(stupidity is a reason, _not_ an excuse).
**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**



Re: [WSG] Unicode in Visual Studio? For xhtml, css ?

2005-07-20 Thread Juergen Auer
On 21 Jul 2005 at 9:19, Rebecca Cox wrote:

 For HTML it needs to be Unicode/utf-8 but there are 4 different 
 Unicode encodings to choose from!

Hi Rebecca,

I do not use VS, but the encoding is separate, independet from the 
editor.

If you want to create european/english pages with some Unicode-
symbols, UTF-8 is normally the best. You can also create your CSS as 
UTF-8. A pure english-written file is only a little big bigger as the 
Ascii-Version (3 Bytes, the BOM).

Asiatic languages may use GB2312 (Non-Unicode) or UTF-16, which is 
smaller than UTF-8 for these languages. There UTF-8 would need 3 
bytes per character, UTF-16 needs only two bytes.


Best Regards
Juergen Auer
http://www.sql-und-xml.de/

**
The discussion list for  http://webstandardsgroup.org/

 See http://webstandardsgroup.org/mail/guidelines.cfm
 for some hints on posting to the list  getting help
**