Get The List Separator Based On Locale

Usually when you display a list of values, you might show it like this: 100,200,300 The problem is that in some countries using a comma could mean something completely different. For instance, commas in Germany have the same meaning as decimal points do here in the US. Some Countries List Separators: United States = , France = ; German = ; Mexico = , Sweden = ; So whenever you need to display a list of values, always use the code below to find out what the users list separator is!

Complete Article

Hide comments


  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.