contributions/punycode/start.inc.php
Go to the documentation of this file.00001 <?php 00002 define ('CONVERTER_PUNYCODE', 'punycode'); 00003 00004 require_once dirname(__FILE__) . '/lib/helpers/converters/punycode.converter.php'; 00005 ConverterFactory::register_converter(CONVERTER_PUNYCODE, new ConverterPunycode()); 00006 00007 /** 00008 * @defgroup Punycode 00009 * @ingroup Text 00010 * 00011 * A converter to and from punycode 00012 * 00013 * @section Usage Usage 00014 * 00015 * Use converter factory to convert to and from punycode: 00016 * 00017 * @code 00018 * $domain = 'ümlaut-domain.de'; 00019 * $puny = ConverterFactory::encode($domain, CONVERTER_PUNYCODE); 00020 * $non_puny = ConverterFactory::decode($puny, CONVERTER_PUNYCODE); 00021 * @endcode 00022 */