PHP Doku:: Bestimmt das Encoding, mit dem XML-Dokumente geparst werden sollen - function.xslt-set-encoding.html

Verlauf / Chronik / History: (40) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzXML-ManipulationXSLTXSLT Funktionenxslt_set_encoding

Ein Service von Reinhard Neidl - Webprogrammierung.

XSLT Funktionen

<<xslt_set_base

xslt_set_error_handler>>

xslt_set_encoding

(PHP 4 >= 4.0.5)

xslt_set_encodingBestimmt das Encoding, mit dem XML-Dokumente geparst werden sollen

Beschreibung

void xslt_set_encoding ( resource $xh , string $encoding )

Bestimmt das Ausgabeencoding für die XSLT-Transformation. Wenn Sie ein Sablotron-Backend verwenden, ist diese Option nur verfügbar, wenn Sie Sablotron mit Encoding-Support kompiliert haben.

Parameter-Liste

xh

Der XSLT-Prozessor-Linkidentifier, der mittels xslt_create() erzeugt wurde.

encoding

Ein Ausgabeencoding, z.B. iso-8859-1.

Rückgabewerte

Es wird kein Wert zurückgegeben.


4 BenutzerBeiträge:
- Beiträge aktualisieren...
gloob at litio dot org
10.09.2007 12:13
Beware with http://bugs.php.net/bug.php?id=23148 if you experienced problems compiling php4-xslt.
francois at flash-france dot com
26.01.2005 16:05
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
Hudson Silva
12.03.2004 18: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.06.2003 17:33
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 ;-)



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)