SJIS is not on the list of output encodings that Saxon recognizes, which
is listed on the conformance.html page. To fully support an output
encoding, it has to be known both to Saxon and to the Java VM. Java is
responsible for actually encoding the characters, but before it can do
that, Saxon has to know which Unicode characters are encodable, so it
can represent the others using numeric XML character references. If
Saxon doesn't recognize the encoding, it gives you this warning message.
It then assumes that the encoding can handle ASCII characters only, and
translates all other characters to character references before passing
them on to Java.
There is information on the extensibility.html page explaining how you
can add a character encoding class to Saxon; if you write one for SJIS,
I will normally be happy to include it in future releases of the
I could do better than this using the java.nio.charset facilities in JDK
1.4, which allow unmappable characters to be reported by the Java
encoder back to the application, which can then decide what to do with
them. It's on the TODO list...
> -----Original Message-----
> From: saxon-help-admin@...
> [mailto:saxon-help-admin@...] On Behalf Of
> Bill Keese
> Sent: 26 August 2003 07:08
> To: saxon-help@...
> Subject: [saxon] SJIS output encoding
> Has anyone gotten the SJIS output encoding to work recently? I keep
> getting the "Failed to load SJIS" error message, although I
> believe my
> java VM supports SJIS because I have other java programs which
> instantiate SJIS ByteToChar converters, and they work successfully.
> I get the problem on both Saxon 6.5.3 and 7.6.5, Java 1.4 and
> 1.3, Sun
> java and IBM java.
> For the Sun VM on Windows 2000, and the encoding should be
> contained in
> charsets.jar, right?
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a
> single machine. WITHOUT REBOOTING! Mix Linux / Windows /
> Novell virtual machines at the same time. Free trial click
> saxon-help mailing list
> https://lists.sourceforge.net/lists/listinfo/s> axon-help