The Server Pages
:: TSP Menu
- Home
- Authors
- Glossary
- RSS Feed

:: Servers
- CPanel
- Hosting
- Linux
- Windows

:: Webmaster
- Databases
- Design
- Search Engines

:: Scripts
- Scripts

:: Documentation
- PHP Manual

:: Other
- Errors & Solutions
- TechPunt
- Wojjie

search for in the

xslt_set_error_handler> <xslt_set_base
[edit] Last updated: Sat, 12 May 2012

view this page in


(PHP 4 >= 4.0.5)

xslt_set_encodingSet the encoding for the parsing of XML documents


void xslt_set_encoding ( resource $xh , string $encoding )

Set the output encoding for the XSLT transformations. When using the Sablotron backend, this option is only available when you compile Sablotron with encoding support.



The XSLT processor link identifier, created with xslt_create().


An output encoding, e.g iso-8859-1.

Return Values

No value is returned.

xslt_set_error_handler> <xslt_set_base
[edit] Last updated: Sat, 12 May 2012
add a note add a note User Contributed Notes xslt_set_encoding
gloob at litio dot org 10-Sep-2007 03:13
Beware with if you experienced problems compiling php4-xslt.
francois at flash-france dot com 26-Jan-2005 07:05
sablotron and php have to be correctly linked with iconv library to get this function working

IE on sabotron ./configure :
Hudson Silva 12-Mar-2004 09:31
I'm running Mandrake Linux v9.1, with Apache 2.0.48 and PHP 4.3.4...I'm have make PHP with XSLT support, and this work fine, expect because a problem...the function xslt_set_encoding don't work, and i have found a solution...simply, type export LDFLAGS=-lstdc++ before start the configure program of PHP. And this will work!
zibi at sails pl 12-Jun-2003 08:33
i'm usig it that way:

$args = array ( '/_xml' => $xml, '/_xslt' => $xslt);

all placed in very nice class ;-)

show source | credits | sitemap | contact | advertising | mirror sites