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

Add support for ASCII representations of a DN #195

Closed
wants to merge 1 commit into from

Conversation

arielb2
Copy link

@arielb2 arielb2 commented Jul 27, 2016

use an existing function in 'encoding.idna' for
convert unicode to ascii using the function
according to the standard on
https://www.ietf.org/rfc/rfc3490.txt

use an existing function in 'encoding.idna' for
convert unicode to ascii using the function
according to the standard on
https://www.ietf.org/rfc/rfc3490.txt
@rthalley
Copy link
Owner

There's no need for this, it's already there.

n = dns.name.from_unicode(u'栃木.jp')
print n.to_text()
xn--4pvxs.jp.
print n.to_unicode()
栃木.jp.

@rthalley rthalley closed this Jul 28, 2016
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

Successfully merging this pull request may close these issues.

None yet

2 participants