Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

National numbers outside the US and Canada are always prefixed with 01 #61

Closed
SBoudrias opened this issue Nov 3, 2015 · 1 comment
Closed
Labels

Comments

@SBoudrias
Copy link

When formatting a number from outside the US or Canada as a national number, this library always prepend a 01 in front.

Here's an example with a number from Mexico

num = phonenumbers.parse('+523222222099')
phonenumbers.format_number(num, phonenumbers.PhoneNumberFormat.NATIONAL)
// OUT: u'01 322 222 2099'

I'd expect the national number to be 322 222 2099.

@daviddrysdale
Copy link
Owner

I get the same result from the upstream Java code, so please could you raise your worry with them?

(The Python version just tracks the Java code, so if the same behaviour occurs with both it's not a python-phonenumbers specific issue.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants