Wolfram Research

Function Repository Resource:

DecodeFromIDNA (1.0.0) current version: 2.0.0 »

Source Notebook

Decode an IDNA string

Contributed by: Arnoud Buzing

ResourceFunction["DecodeFromIDNA"][session,string]

decodes an IDNA formatted string.

Details and Options

ResourceFunction["DecodeFromIDNA"] requires the idna Python package. This can be installed by running pip install idna in the command line.

Examples

Basic Examples (2) 

Start a Python session:

In[1]:=
session = StartExternalSession["Python"]
Out[1]=

Decode a string from the IDNA format:

In[2]:=
ResourceFunction[
 "DecodeFromIDNA"][session, "xn--eckwd4c7c.xn--zckzah"]
Out[2]=

Publisher

Arnoud Buzing

Version History

  • 2.0.0 – 06 November 2024
  • 1.0.0 – 08 July 2019

Related Resources

License Information