ID: 14499 Updated by: sterling Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]