Does anybody know how to convert an international dialing code into the name of the country it refers to? This sounds easy but I can’t figure it out. I’m sure it is a combination of the first 1, 2, 3 or 4 digits (excluding the international access code) and the length of the number.) An example would be a number like 007841291234 which is a number in Penza Russia. The code 7 after the 00 is Russia. However, the code 78 after the 00 can also be interpreted as Kazakhstan.
I have looked around and there are plenty of sites where you can enter a telephone number and gat back the contry it refers to but nowhere can I find am explanation of the algorithm.
Anybody know?
Cheers,
Kevin Bell