PHP code example of contao / idna

1. Go to this page and download the library: Download contao/idna library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

contao / idna example snippets



$mystring = '<something in e.g. ISO-8859-15';
$mystring = encode_utf8($mystring, 'ISO-8859-15');
echo $IDN->encode($mystring);


$mystring = 'nörgler.com';
echo uctc::convert($mystring, 'utf8', 'utf7imap');