xref: /PHP-8.4/ext/iconv/tests/translit-utf8.phpt (revision e9f783fc)
1--TEST--
2Translit UTF-8 quotes
3--EXTENSIONS--
4iconv
5--SKIPIF--
6<?php
7( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
8?>
9--INI--
10error_reporting=2047
11--FILE--
12<?php
13//error_reporting(E_ALL);
14$utf = implode('', file(__DIR__.'/Quotes.UTF-8.data'));
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