xref: /PHP-8.0/ext/iconv/tests/translit-utf8.phpt (revision 83bfbc29)
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
12//error_reporting(E_ALL);
13$utf = implode('', file(__DIR__.'/Quotes.UTF-8.data'));
14
15print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
16print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
17?>
18--EXPECT--
19"Hello"
20`Hello�
21"Hello"
22`Hello�
23"Hello"
24'Hello'
25"Hello"
26'Hello'
27