EncodeToIDNA

Encode a string to the IDNA format.

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

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

Encode a string to the IDNA format:

In[2]:=
ResourceFunction[ "https://www.wolframcloud.com/objects/user-7053ce31-817f-4643-aec1-\
eda27051bba6/DeployedResources/Function/EncodeToIDNA"][session, \
"ドメイン.テスト"]
Out[2]=

Publisher Information