Wolfram Research

Function Repository Resource:

EncodeToIDNA

Source Notebook

Encode a string to the IDNA format

Contributed by: Arnoud Buzing

ResourceFunction["EncodeToIDNA"][session,string]

encodes string to the IDNA format.

Details and Options

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

Examples

Basic Examples

Start a session:

Encode a string to the IDNA format:

In[1]:=
ResourceFunction["EncodeToIDNA"][session, "ドメイン.テスト"]
Out[1]=

Resource History

License Information