Details
-
Bug
-
Status: Resolved
-
Resolution: Cannot Reproduce
-
2.7
-
None
-
Operating System: Windows XP
Platform: Sun
-
29748
Description
hi,
When i tried to use GBK as the encoding in my XML, my Transformer is
throwing an error that GBK encoding is not supported. Am using XML/XSL to
create the HTML page. When i use GB2312 as encoding it is able to transform
the page into HTML. but GB2312 encoding is not able to support some of the
chinese characters. In My database and in my Websphere APplication server JVM
setting am setting the encoding as GBK. Also in my servlet response.
Is GBK encoding is supported by XALAN. i tried to get answers from java forums
but i didnt get any answer for that. am not sure if it is an error (xalan is
not able to support GBK) or problem is in my application side.
pleas clarify me if XALAN transformer is able to support GBK encoding. Thanks.
please find the exception below
; Line#: 1; Column#: 37
javax.xml.transform.TransformerException: Invalid encoding name "GBK".
at org.apache.xalan.transformer.TransformerImpl.fatalError
(TransformerImpl.java:671)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:647)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1054)
at org.apache.xalan.transformer.TransformerImpl.transform
(TransformerImpl.java:1032)