Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
Decent Windows text editors can use \n or \r\n. – mcrumley Jul 13 '10 at 17:22

Your Answer


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.