Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Assume that the site is still in it's design phases so there's no initial work to pick one over the other from the start.

share|improve this question

1 Answer 1

up vote 8 down vote accepted

With UTF-8 you have increased flexibility over ISO 8859-1. The former can encode any character included in Unicode while the latter is limited to Western European languages.

ISO 8859-1 ("Latin1") doesn't include, for example, Greek, Hebrew, Arabic, Cyrillic, Chinese, Japanese and Korean, etc.

share|improve this answer
    
Is the LS (line separator) character also supported in HTML or do I still have to use the classic \r\n kludge? –  Evan Plaice Jul 13 '10 at 4:59
    
@Evan: normally you just use \n. –  DisgruntledGoat Jul 13 '10 at 12:01
    
@DisgruntledGoat I thought \n was specific to *nix platforms whereas \r is specific to Windows. Don't you need a combination of the two to make the code platform independent? –  Evan Plaice Jul 13 '10 at 12:24
    
@Evan: I create content in both Windows and Linux which is hosted by both IIS and Apache in all combinations of edit/host and I never pay any attention to the line endings (which are independent of the encoding, by the way). I think (unfortunately?) that \r\n has graduated from kludge to a de facto standard. (It's actually more "typewriter-like" than Unix line endings.) –  Dennis Williamson Jul 13 '10 at 16:17
1  
Decent Windows text editors can use \n or \r\n. –  mcrumley Jul 13 '10 at 17:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.