Help: Sablotron and Shift-jis
| From: | Michel Sahyoun | Date: | Thu, 06 Mar 2003 23:40:42 +0000 |
| Subject: | Help: Sablotron and Shift-jis | ||
| Groups: | php.dev php.i18n php.xml.dev | ||
| Request: | Send a blank email to php-dev+get-94860@lists.php.net to get a copy of this message | ||
Does anyone have an example of using XSLT with Sablotron to transform and
XML document containing Shift-jis encoded characters?
I keep getting the following error message: Illegal Character for Encoding
'Shift-jis'
I am using the latest from snap.php.net and sablotron 0.97 FullPack with
iconv, and Javascript.
In my php file, I call xslt_set_encoding($xsltHandle, 'Shift-jis');
My xsl file has <xsl:output method="xml" omit-xml-declaration="yes"
encoding="Shift-jis" />
My XML file has: <?xml version="1.0" encoding="Shift-jis" ?>
Am I doing something wrong? Is the encoding name misspelled? Anything else I
could check?
Thanks,
Michel