Skip to content

antifuchs/idna

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

IDNA - International Domain Name functions for Common Lisp.

Usage (unicode -> punycode only at the moment):

Loading:

    (asdf:load-system :idna)

Encoding strings as IDNA:

    (idna:to-ascii "中央大学.tw")
    ;; => "xn--fiq80yua78t.tw"

    (idna:to-ascii "müller.example.com")
    ;; => "xn--mller-kva.example.com"

Decoding strings from IDNA notation to unicode text:

    (idna:to-unicode "xn--fiq80yua78t.tw")
    ;; => "中央大学.tw"

Known bugs

The functions punycode-encode accept a :preserve-case keyword argument that currently doesn't work: punycode-encode returns wrong results, and punycode-decode doesn't implement it at all.

About

Common Lisp IDNA encding / decoding functions

Resources

License

Stars

Watchers

Forks

Packages

No packages published