Help: Sablotron and Shift-jis

[email protected] ("Michel Sahyoun")
Newsgroups php.dev,php.i18n,php.xml.dev
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.