Wolfram Research

Function Repository Resource:

DecodeFromIDNA

Source Notebook

Decode an IDNA string

Contributed by: Arnoud Buzing

ResourceFunction["DecodeFromIDNA"][session,string]

decodes an IDNA formatted string.

Details and Options

Requires the Python “idna” package (pip install idna).

Examples

Basic Examples

Start a session:

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

Encode a string to the IDNA format:

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

Resource History

License Information