error_reporting=2039
--FILE--
<?php
-/* include('test.inc'); */
/* charset=CP932, KOI8-R */
$str = "\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d\x87\x6d";
print iconv( "CP932", "EUC-JP//TRANSLIT", $str );
unicode.output_encoding=ISO-8859-1
--FILE--
<?php
-/* include('test.inc'); */
/* charset=EUC-JP */
function hexdump($str) {
unicode.output_encoding=ISO-8859-1
--FILE--
<?php
-/* include('test.inc'); */
/* charset=EUC-JP */
$str = "
unicode.output_encoding=ISO-8859-1
--FILE--
<?php
-/* include('test.inc'); */
/* charset=EUC-JP */
$str = "
error_reporting=2039
--FILE--
<?php
-/* include('test.inc'); */
echo "iconv extension is available\n";
$test = "æøå";
var_dump("ISO-8859-1: $test");
error_reporting=2039
--FILE--
<?php
-/* include('test.inc'); */
/*
Expected output:
abcd
error_reporting=2039
--FILE--
<?php
-/* include('test.inc'); */
iconv_set_encoding('internal_encoding', 'EUC-JP');
iconv_set_encoding('output_encoding', 'Shift_JIS');
ob_start('ob_iconv_handler');
+++ /dev/null
-<?php
-// Do not dl load extension
-//if (!extension_loaded("iconv") && ini_get("enable_dl")) {
-// $dlext = (substr(PHP_OS, 0, 3) == "WIN") ? ".dll" : ".so";
-// @dl("iconv$dlext");
-//}
-?>
\ No newline at end of file
--SKIPIF--
<?php
include('skipif.inc');
-( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
+(ICONV_IMPL != "libiconv") and die("skip ICONV_IMPL != \"libiconv\"");
?>
--INI--
error_reporting=2039
--FILE--
<?php
-/* include('test.inc'); */
// Should be ok.
// Content from file is from libiconv testkit. Tested both
// with a string as an implode, no difference.
--SKIPIF--
<?php
include('skipif.inc');
-( ICONV_IMPL != "libiconv" ) and die("skip ICONV_IMPL != \"libiconv\"");
+(ICONV_IMPL != "libiconv") and die("skip ICONV_IMPL != \"libiconv\"");
?>
--INI--
error_reporting=2047
--FILE--
<?php // vim600: syn=php
-/* include('test.inc'); */
//error_reporting(E_ALL);
$utf = implode('', file(dirname(__FILE__).'/Quotes.UTF-8'));