mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
18 lines
281 B
Plaintext
18 lines
281 B
Plaintext
|
--TEST--
|
||
|
IDN
|
||
|
--SKIPIF--
|
||
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
/*
|
||
|
* Test IDN functions (procedural only)
|
||
|
*/
|
||
|
|
||
|
echo idn_to_ascii("t\xC3\xA4st.de")."\n";
|
||
|
echo urlencode(idn_to_utf8('xn--tst-qla.de'))."\n";
|
||
|
|
||
|
?>
|
||
|
--EXPECT--
|
||
|
xn--tst-qla.de
|
||
|
t%C3%A4st.de
|