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
- Host: GitHub
- URL: https://github.com/caolan/chicken-punycode
- Owner: caolan
- Created: 2016-01-09T15:15:06.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-02-23T14:32:56.000Z (over 3 years ago)
- Last Synced: 2025-10-29T04:28:43.742Z (8 months ago)
- Language: Scheme
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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