8

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.

1 Answer 1

9

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.

7
  • Is the LS (line separator) character also supported in HTML or do I still have to use the classic \r\n kludge? Jul 13, 2010 at 4:59
  • 1
    @Evan: normally you just use \n. Jul 13, 2010 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? Jul 13, 2010 at 12:24
  • 2
    Decent Windows text editors can use \n or \r\n.
    – mcrumley
    Jul 13, 2010 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. Jul 14, 2010 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.