Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : XSLT Functions : xslt_set_encoding

xslt_set_encoding

Set the encoding for the parsing of XML documents (PHP 4 >= 4.0.5)
void xslt_set_encoding ( resource xh, string encoding )


Code Examples / Notes » xslt_set_encoding

francois

sablotron and php have to be correctly linked with iconv library to get this function working
IE on sabotron ./configure :
--with-iconv-prefix=/your/path


zibi

i'm usig it that way:
$ht=xslt_create();
xslt_set_encoding($ht,"ISO-8859-2");
$args = array ( '/_xml' => $xml, '/_xslt' => $xslt);
$result=xslt_process($ht,'arg:/_xml','arg:/_xslt',NULL,$args);
all placed in very nice class ;-)


hudson silva

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!

gloob

Beware with http://bugs.php.net/bug.php?id=23148 if you experienced problems compiling php4-xslt.

Change Language


Follow Navioo On Twitter
xslt_backend_info
xslt_backend_name
xslt_backend_version
xslt_create
xslt_errno
xslt_error
xslt_free
xslt_getopt
xslt_process
xslt_set_base
xslt_set_encoding
xslt_set_error_handler
xslt_set_log
xslt_set_object
xslt_set_sax_handler
xslt_set_sax_handlers
xslt_set_scheme_handler
xslt_set_scheme_handlers
xslt_setopt
eXTReMe Tracker