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