Bug #14499 Updated: encoding with XSLT problem

From: Date: Fri, 14 Dec 2001 16:59:36 +0000
Subject: Bug #14499 Updated: encoding with XSLT problem
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-73763@lists.php.net to get a copy of this message
ID: 14499 Updated by: sterling Reported By: douglasd@iprimus.com.au Old Status: Open Status: Bogus Bug Type: XSLT related Operating System: windows 2000 PHP Version: 4.1.0 New Comment: In order to use utf-8 you must set the encoding from within your <?xml ?> block.. If you want to use the xslt_set_encoding() function than you must compile sablotron itself with encoding support. not a bug. Previous Comments: ------------------------------------------------------------------------ [2001-12-13 17:52:07] douglasd@iprimus.com.au I got this error using XSLT in PHP-4.1.0 on Windows 2000. Warning: Sablotron error on line 1: unknown encoding '' in e:\www\htdocs\home.php on line 151 Warning: Unknown persistent list entry type in module shutdown (11) in Unknown on line 0 and when I add an encoding statement, Warning: xslt_set_encoding() is not supported in this PHP build in e:\www\htdocs\home.php on line 150 My code: $xml = $doc->dumpmem(); $arguments = array( '/_xml' => $xml, ); // Allocate a new XSLT processor $xh = xslt_create(); #xslt_set_encoding($xh, "utf-8"); // Process the document $result = xslt_process($xh, 'arg:/_xml', $include_dir . $xslt_filename, NULL, $arguments); var_dump($result); xslt_free($xh); ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14499&edit=1

« previous php.dev (#73763) next »