php-src/ext/iconv/tests/translit-utf8.phpt

29 lines
528 B
Plaintext
Raw Normal View History

--TEST--
Translit UTF-8 quotes
--SKIPIF--
<?php
include('skipif.inc');
2002-10-21 10:35:02 +00:00
( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
?>
--INI--
magic_quotes_runtime=0
error_reporting=2047
--FILE--
<?php // vim600: syn=php
2002-10-29 16:28:12 +00:00
/* include('test.inc'); */
//error_reporting(E_ALL);
2004-11-22 17:43:03 +00:00
$utf = implode('', file(dirname(__FILE__).'/Quotes.UTF-8'));
print(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $utf));
print(iconv("UTF-8", "ASCII//TRANSLIT", $utf));
?>
--EXPECT--
"Hello"
`Hello<6C>
"Hello"
`Hello<6C>
"Hello"
'Hello'
"Hello"
'Hello'