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

Error while trying to decode seemingly valid domain name #38

Open
wantedru opened this issue May 22, 2021 · 1 comment
Open

Error while trying to decode seemingly valid domain name #38

wantedru opened this issue May 22, 2021 · 1 comment

Comments

@wantedru
Copy link

Domain name "xn--p5b2bfp5fh3fra.xn--45brj9c" seems valid, at least it's been succesfully decoded by chrome and various online punycode converters to "কোম্পানি.ভারত".
But in elixir I receive the following error:

iex> :idna.decode('xn--p5b2bfp5fh3fra.xn--45brj9c')                   
** (exit) {:bad_label, {:nfc, 'Label must be in Normalization Form C'}}
    (idna 6.1.1) /deps/idna/src/idna.erl:157: :idna.check_nfc/1
    (idna 6.1.1) /deps/idna/src/idna.erl:255: :idna.check_label/4
    (idna 6.1.1) /deps/idna/src/idna.erl:313: :idna.ulabel/1
    (idna 6.1.1) /deps/idna/src/idna.erl:296: :idna.decode_1/2
@benoitc
Copy link
Owner

benoitc commented Feb 22, 2024

probably we shoudl handle the latest update of the specification.

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

No branches or pull requests

2 participants