http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1950

*** shadow/1950 Sat Jul 21 00:59:12 2001
--- shadow/1950.tmp.17752       Sat Jul 21 18:46:54 2001
***************
*** 2,9 ****
  | Transformation encoding problem with DOMSource                             |
  +----------------------------------------------------------------------------+
  |        Bug #: 1950                        Product: XalanJ2                 |
! |       Status: NEW                         Version: 2.0.x                   |
! |   Resolution:                            Platform: PC                      |
  |     Severity: Major                    OS/Version: Linux                   |
  |     Priority: High                      Component: org.apache.xalan.transf |
  +----------------------------------------------------------------------------+
--- 2,9 ----
  | Transformation encoding problem with DOMSource                             |
  +----------------------------------------------------------------------------+
  |        Bug #: 1950                        Product: XalanJ2                 |
! |       Status: RESOLVED                    Version: 2.0.x                   |
! |   Resolution: INVALID                    Platform: PC                      |
  |     Severity: Major                    OS/Version: Linux                   |
  |     Priority: High                      Component: org.apache.xalan.transf |
  +----------------------------------------------------------------------------+
***************
*** 121,123 ****
--- 121,141 ----
  the escape reference from 161 onward and rebuild xalan.
  
  Hope the above information is useful in solving the bug.
+ 
+ 
+ ------- Additional Comments From [EMAIL PROTECTED]  2001-07-21 18:46 -------
+ Terence --
+ The problem is that you're building your Document with an InputStreamReader as 
+ an argument to your InputSource.  The InputStreamReader specifies an encoding.  
+ In the single argument form that you've used, this is the platform default 
+ encoding given by the Java system property file.encoding.  Since your reader is 
+ doing the code translation from the system default encoding into Unicode, this 
+ overrides Xalan (well, actually the XML parser) handling the encoding.
+ 
+ To fix your program, change
+   in = new InputSource(isr);
+ to
+   in = new InputSource(fis);
+ 
+ and all should be fine.
+ Gary

Reply via email to