473,395 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Locale Formatting: Phone Numbers

Hello, Folks!

Does anyone know of a website that lists the local phone number
formats for each country?

TIA...
Jan 24 '08 #1
4 2333
Blue Streak wrote:
Does anyone know of a website that lists the local phone number
formats for each country?
Only the country codes are easily available:
http://www.studyabroad.com/telcodes.html

There's a web site that contains major cities too, but it's impossible
to list everything:
http://www.countrycallingcodes.com/

There are no standards for local phone numbers. The local telephone
centers figure out the area code. In the US and Canada the area code is
always 3-digit, but in many other countries it's a variable digit code.
For example, big cities might have 1-digit area codes, and small
villages could have 5-digit ones. It would be a very large database to
list every little village in the world.

Anyway, you should be looking for a web service, not a web site. For
example, here's one implementation for US phone number lookups:
http://www.eggheadcafe.com/articles/20031118.asp

Google for this: web service phone number lookup

Tom
Jan 24 '08 #2
It's virtually impossible.

If you really mean local phone number formats, then usually it's of the form
n-nnnn or nn-nnnn or nnn-nnnn or nnnn-nnnn with hyphens as shown. I've seen
a directory in which the local phone number format was nnn and the directory
had more pages explaining the phone company than pages listing phone
numbers.

If you mean national phone number formats, then the traditional format was
nn(nnn)nnnn or nnn(nnn)nnnn or nnnn(nn)nnnn or nnnnn(n)nnnn, but one
currently popular format is nn-nnnn-nnnn or nnn-nnn-nnnn or nnnn-nn-nnnn or
nnnnn-n-nnnn, and another currently popular format is (nn)nnnn-nnnn or
(nnn)nnn-nnnn or (nnnn)nn-nnnn or (nnnnn)n-nnnn. For many years all three
formats were pretty much equal in popularity, but the traditional format is
less popular now. Other countries might be less flexible, but still I think
you're going to have trouble if you restrict the kinds of formats you
recognize.
"Blue Streak" <rd********@hotmail.comwrote in message
news:29**********************************@i12g2000 prf.googlegroups.com...
Hello, Folks!

Does anyone know of a website that lists the local phone number
formats for each country?

TIA...
Jan 25 '08 #3
On Jan 24, 7:29*pm, "Norman Diamond" <ndiam...@community.nospam>
wrote:
It's virtually impossible.

If you really mean local phone number formats, then usually it's of the form
n-nnnn or nn-nnnn or nnn-nnnn or nnnn-nnnn with hyphens as shown. *I've seen
a directory in which the local phone number format was nnn and the directory
had more pages explaining the phone company than pages listing phone
numbers.

If you mean national phone number formats, then the traditional format was
nn(nnn)nnnn or nnn(nnn)nnnn or nnnn(nn)nnnn or nnnnn(n)nnnn, but one
currently popular format is nn-nnnn-nnnn or nnn-nnn-nnnn or nnnn-nn-nnnn or
nnnnn-n-nnnn, and another currently popular format is (nn)nnnn-nnnn or
(nnn)nnn-nnnn or (nnnn)nn-nnnn or (nnnnn)n-nnnn. *For many years all three
formats were pretty much equal in popularity, but the traditional format is
less popular now. *Other countries might be less flexible, but still I think
you're going to have trouble if you restrict the kinds of formats you
recognize.

"Blue Streak" <rdlebre...@hotmail.comwrote in message

news:29**********************************@i12g2000 prf.googlegroups.com...
Hello, Folks!
Does anyone know of a website that lists the local phone number
formats for each country?
TIA...- Hide quoted text -

- Show quoted text -
I guess this would be the best on-line source for my own question:

http://www.wtng.info
Jan 25 '08 #4
Norman Diamond skrev:
It's virtually impossible.

If you really mean local phone number formats, then usually it's of the
form n-nnnn or nn-nnnn or nnn-nnnn or nnnn-nnnn with hyphens as shown.
I've seen a directory in which the local phone number format was nnn and
the directory had more pages explaining the phone company than pages
listing phone numbers.

If you mean national phone number formats, then the traditional format
was nn(nnn)nnnn or nnn(nnn)nnnn or nnnn(nn)nnnn or nnnnn(n)nnnn, but one
currently popular format is nn-nnnn-nnnn or nnn-nnn-nnnn or nnnn-nn-nnnn
or nnnnn-n-nnnn, and another currently popular format is (nn)nnnn-nnnn
or (nnn)nnn-nnnn or (nnnn)nn-nnnn or (nnnnn)n-nnnn. For many years all
three formats were pretty much equal in popularity, but the traditional
format is less popular now. Other countries might be less flexible, but
still I think you're going to have trouble if you restrict the kinds of
formats you recognize.
To make it more complicated we does not have area-codes in Norway, but
we use different format to tell anything about what kind of phone it is.
"nnn nn nnn" for "special" phone numbers like fax and mobile phones, and
"nn nn nn nn" for regular numbers.

To make it easier mobile phone numbers have it's own number-series.

--
Bjørn Brox
Jan 25 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Shay Hurley | last post by:
this is probably a stupid question so apologies in advance. I am trying to format a number to look like a phone number with "-"'s between the numbers etc e.g. 15554256987 should be formatted as...
0
by: Daniele Varrazzo | last post by:
Hi everybody Is there any way to make the most of locale.localeconv() in formatting currencies? I can use many tricks as >>> locale.setlocale(locale.LC_ALL, locale.getlocale()) >>> lc =...
4
by: Roger Leigh | last post by:
Hello, I'm writing a fixed-precision floating point class, based on the ideas in the example fixed_pt class in the "Practical C++ Programming" book by Steve Oualline (O' Reilly). This uses a...
2
by: sprotty | last post by:
I'm writting some classes that deal with XML, and they need to be able to convert from strings to doubles and back. The problem is they should only accept/output strings valid in XML, that is...
7
by: ilona | last post by:
Hi all, I store phone numbers in the database as 123447775665554(input mask is used for input, and some numbers have extensions), and I also know from db if the number is Canadian, US, or some...
0
by: KentEMon | last post by:
I have a field in my SQL database table which has phone numbers stored with no "-" character. That is, 4540090 rather than 454-0090. I have a webform datagrid and wish to display these values in a...
2
by: czbacnik | last post by:
Hello! All I want to do is have my phone numbers appear (555) 555-5555, but for some reason I keep getting all these weird -- in between the numbers. I read that I should put "(999) 999-9999"! as...
5
by: lim4801 | last post by:
I am currently in doing a program which is given by my tutor: Contemplate that you are working for the phone company and want to sell "special" phone numbers to companies. These phone numbers are...
4
by: Blue Streak | last post by:
Hello, Folks! Does anyone know of a website that lists the local phone number formats for each country? TIA...
6
by: Jack | last post by:
Hi there, Given a standard .NET string, does anyone know what the regular expression would be to locate each (optional) formatting item in the string (or more likely does anyone have a link that...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.