An open API service indexing awesome lists of open source software.

https://github.com/caolan/chicken-punycode

RFC3492 Punycode implementation for CHICKEN Scheme
https://github.com/caolan/chicken-punycode

Last synced: 3 months ago
JSON representation

RFC3492 Punycode implementation for CHICKEN Scheme

Awesome Lists containing this project

README

          

# Punycode

A CHICKEN Scheme implementation of [RFC 3492][rfc3492]:
"Punycode: A Bootstring encoding of Unicode for Internationalized
Domain Names in Applications (IDNA)"

```scheme
(use punycode)

(punycode-encode "Bücher")
;; => "Bcher-kva"

(punycode-decode "Bcher-kva")
;; => "Bücher"

(domain->ascii "www.bücher.de")
;; => "www.xn--bcher-kva.de"

(domain->unicode "www.xn--bcher-kva.de")
;; => "www.bücher.de"
```

This implementation does not support producing mixed-case
annotations when encoding (which is not required by the RFC).

[rfc3492]: https://www.ietf.org/rfc/rfc3492.txt