Skip to content

punycoder 1.0.0

Choose a tag to compare

@bart-turczynski bart-turczynski released this 12 Jun 17:31

First CRAN release — now available with install.packages("punycoder").

CRAN: https://CRAN.R-project.org/package=punycoder

Highlights

  • RFC 3492-compliant Punycode/IDN encode & decode (puny_encode(), puny_decode())
  • URL-aware processing (url_encode(), url_decode(), parse_url())
  • Domain validation utilities (is_punycode(), is_idn(), validate_domain())
  • High-performance C++ backend via Rcpp; optional libidn2 native backend with in-tree fallback
  • Strict decoding enforces RFC 5891 canonical A-label form
  • Label length bounded in strict and non-strict mode (hardens the fallback decoder against oversized xn-- labels)