xref: /PHP-7.1/ext/intl/tests/idn.phpt (revision 113213f0)
1--TEST--
2IDN
3--SKIPIF--
4<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
5--FILE--
6<?php
7
8/*
9 * Test IDN functions (procedural only)
10 */
11
12echo idn_to_ascii("t\xC3\xA4st.de")."\n";
13echo urlencode(idn_to_utf8('xn--tst-qla.de'))."\n";
14
15?>
16--EXPECT--
17xn--tst-qla.de
18t%C3%A4st.de
19