Formating phone numbers

Posted by Sven on Stack Overflow See other posts from Stack Overflow or by Sven
Published on 2010-06-02T19:57:13Z Indexed on 2010/06/02 20:14 UTC
Read the original article Hit count: 207

Our customers often fill out "incorrect" formated phone-numbers. Do anyone know if there is any lib or standard to convert numbers into a more international style?

This is a Swedish example but we have customers around the globe and i don't what to manually handle implementations for everyone.

input often is like this: 0555 11122

and the wanted result is something like this: +46(0)555-11122

I can do the formating myself but different countries have different variations and systems so a C/Java/C# lib or a standard method to handle this would be great.

© Stack Overflow or respective owner

Related posts about internationalization

Related posts about phone-number