xref: /PHP-7.1/ext/iconv/tests/translit-utf8.phpt (revision 7af945e2)
1--TEST--
2Translit UTF-8 quotes
3--SKIPIF--
4<?php
5include('skipif.inc');
6( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
7?>
8--INI--
9error_reporting=2047
10--FILE--
11<?php // vim600: syn=php
12/* include('test.inc'); */
13//error_reporting(E_ALL);
14$utf = implode('', file(dirname(__FILE__).'/Quotes.UTF-8'));
15
16print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
17print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
18?>
19--EXPECT--
20"Hello"
21`Hello�
22"Hello"
23`Hello�
24"Hello"
25'Hello'
26"Hello"
27'Hello'
28