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.


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.

|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
  • 1
    @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
  • 2
    Decent Windows text editors can use \n or \r\n. – mcrumley Jul 13 '10 at 17:22
  • 1
    @Evan: \n is Linux/Unix, \r is Mac, \r\n is Windows. But you can use any of those for any platform's server as far as I know. I've never had any problems on Windows using just \n. – DisgruntledGoat Jul 14 '10 at 8:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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