Phone Number Internationalization
-
Hi, I am working in an Internationalization project where I have to internationalize the phone numbers. The phone number entry would be in the following format. <Country Code Dropdown based on ISO Standard based on which the country code would be populated> - <Area Code Textbox> - <Phone number Textbox> - <Extension Textbox> - <Phone Type Dropdown> The phone type dropdown would contain Office Phone, Mobile Phone, Residence Phone among others. Based upon this we have to decide whether the area code exists. For ex, in India the mobile number is a complete 10 digit code(In near future it might also be 11 digits). In U.S mobile numbers has an area code. Alphanumerics can be used in U.S. In India, the area code might vary between 3-5 digits. The control should take care of all these based on the culture selected. The phone number should be stored with proper formatting(1-800-453-376-9876 in U.S, 91-9880098800 in India). The logic should take care of all these formattings. How could this be achieved? The point to be noted is this should be done client side. We need to do only the formatting and not the validation. We are planning to use an XML file which would store all the formatting details of the countries based on which the controls can be rendered. We are also planning to build a WebcustomControl to build this so that it could be used while entry and display. Thanks for your time in reading this. Any replies appreciated. Once again thanks again.
-
Hi, I am working in an Internationalization project where I have to internationalize the phone numbers. The phone number entry would be in the following format. <Country Code Dropdown based on ISO Standard based on which the country code would be populated> - <Area Code Textbox> - <Phone number Textbox> - <Extension Textbox> - <Phone Type Dropdown> The phone type dropdown would contain Office Phone, Mobile Phone, Residence Phone among others. Based upon this we have to decide whether the area code exists. For ex, in India the mobile number is a complete 10 digit code(In near future it might also be 11 digits). In U.S mobile numbers has an area code. Alphanumerics can be used in U.S. In India, the area code might vary between 3-5 digits. The control should take care of all these based on the culture selected. The phone number should be stored with proper formatting(1-800-453-376-9876 in U.S, 91-9880098800 in India). The logic should take care of all these formattings. How could this be achieved? The point to be noted is this should be done client side. We need to do only the formatting and not the validation. We are planning to use an XML file which would store all the formatting details of the countries based on which the controls can be rendered. We are also planning to build a WebcustomControl to build this so that it could be used while entry and display. Thanks for your time in reading this. Any replies appreciated. Once again thanks again.
k_dasaprakash wrote:
1-800-453-376-9876 in U.S
Just so you know, that is not a valid format for US phone numbers. It is something like 1-800-123-4567 :)
"The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
-
Hi, I am working in an Internationalization project where I have to internationalize the phone numbers. The phone number entry would be in the following format. <Country Code Dropdown based on ISO Standard based on which the country code would be populated> - <Area Code Textbox> - <Phone number Textbox> - <Extension Textbox> - <Phone Type Dropdown> The phone type dropdown would contain Office Phone, Mobile Phone, Residence Phone among others. Based upon this we have to decide whether the area code exists. For ex, in India the mobile number is a complete 10 digit code(In near future it might also be 11 digits). In U.S mobile numbers has an area code. Alphanumerics can be used in U.S. In India, the area code might vary between 3-5 digits. The control should take care of all these based on the culture selected. The phone number should be stored with proper formatting(1-800-453-376-9876 in U.S, 91-9880098800 in India). The logic should take care of all these formattings. How could this be achieved? The point to be noted is this should be done client side. We need to do only the formatting and not the validation. We are planning to use an XML file which would store all the formatting details of the countries based on which the controls can be rendered. We are also planning to build a WebcustomControl to build this so that it could be used while entry and display. Thanks for your time in reading this. Any replies appreciated. Once again thanks again.
Clientside? Is this distributed desktop app clientside, or web app? I assume you're talking web based, so you might want to consider how your validation will be done based on the culture. Where do you think you're actually going to be getting this from?
Deja View - the feeling that you've seen this post before.
-
Hi, I am working in an Internationalization project where I have to internationalize the phone numbers. The phone number entry would be in the following format. <Country Code Dropdown based on ISO Standard based on which the country code would be populated> - <Area Code Textbox> - <Phone number Textbox> - <Extension Textbox> - <Phone Type Dropdown> The phone type dropdown would contain Office Phone, Mobile Phone, Residence Phone among others. Based upon this we have to decide whether the area code exists. For ex, in India the mobile number is a complete 10 digit code(In near future it might also be 11 digits). In U.S mobile numbers has an area code. Alphanumerics can be used in U.S. In India, the area code might vary between 3-5 digits. The control should take care of all these based on the culture selected. The phone number should be stored with proper formatting(1-800-453-376-9876 in U.S, 91-9880098800 in India). The logic should take care of all these formattings. How could this be achieved? The point to be noted is this should be done client side. We need to do only the formatting and not the validation. We are planning to use an XML file which would store all the formatting details of the countries based on which the controls can be rendered. We are also planning to build a WebcustomControl to build this so that it could be used while entry and display. Thanks for your time in reading this. Any replies appreciated. Once again thanks again.
Take a look for the E.164 numeric addressing scheme. It is what Microsoft uses in their new Office Communications Server product for number normalization. It may help you in what you want to do as far as the rules.
-
Hi, I am working in an Internationalization project where I have to internationalize the phone numbers. The phone number entry would be in the following format. <Country Code Dropdown based on ISO Standard based on which the country code would be populated> - <Area Code Textbox> - <Phone number Textbox> - <Extension Textbox> - <Phone Type Dropdown> The phone type dropdown would contain Office Phone, Mobile Phone, Residence Phone among others. Based upon this we have to decide whether the area code exists. For ex, in India the mobile number is a complete 10 digit code(In near future it might also be 11 digits). In U.S mobile numbers has an area code. Alphanumerics can be used in U.S. In India, the area code might vary between 3-5 digits. The control should take care of all these based on the culture selected. The phone number should be stored with proper formatting(1-800-453-376-9876 in U.S, 91-9880098800 in India). The logic should take care of all these formattings. How could this be achieved? The point to be noted is this should be done client side. We need to do only the formatting and not the validation. We are planning to use an XML file which would store all the formatting details of the countries based on which the controls can be rendered. We are also planning to build a WebcustomControl to build this so that it could be used while entry and display. Thanks for your time in reading this. Any replies appreciated. Once again thanks again.
Hi, I hope this helps you or at least someone. I am by no means a professional programmer but more of an extreme hobbyist, but I have seen the phone number internationalization done and maybe I can relay the info...remember, I am self taught so I'm sure there will be holes in my explanation but the practice its self works. I use this in an international logistics system, and instead of a drop down, we utilize a box where we can enter the countries ISO code (or select it from a grid). The format for the phone number is then set in the phone number field, whether that be phone, fax or mobile. This is all done by 3 files; phonetypelist, phoneformatandvalidation, and phoneinfo. PhoneTypeList contains the type of phone numbers, i.e. fax, phone, mobile and other. PhoneFormatAndValidation contains the rules for formating the numbers and the functions for executing the conversion of 7134921212 to +1 713-492-1212. This file is pretty complex since it contains the rules, but it's a fairly small file (class), only 30 kb. The file that contains the dataset is in this format:
If (PhoneInfo.fData Is Nothing) Then
PhoneInfo.fData = New PhoneInfoDataTable
Dim row As PhoneInfoRow = PhoneInfo.fData.NewPhoneInfoRow
row.CountryIsoCode = "AC"
row.CountryDialingCode = "247"
row.InternationalPrefix = "01"
row.NationalPrefix = ""
row.AreaCodeLength = 1
row.LocalNumberLength = 4
PhoneInfo.fData.Rows.Add(row)
row = PhoneInfo.fData.NewPhoneInfoRow
row.CountryIsoCode = "AD"
row.CountryDialingCode = "376"
row.InternationalPrefix = "00"
row.NationalPrefix = ""
row.AreaCodeLength = 1
row.LocalNumberLength = 6Hopefully that helps, but if you need additional info, feel free to let me know. Thanks, Joe
modified on Tuesday, November 18, 2008 9:14 AM