|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
can't move xml/xsl from IIS to Tomcat
Hi,
I'm currently moving a web site from IIS to Tomcat. On this website are a lot of XML and XSL's that were previously translated by ASP code. I'm now changing them so that the transformation occurs from within Java classes. They've all been pretty simple so far, but I've come across one that no one has been able to figure out. Both the XML and XSL are defined to be UTF8 encoding, when IIS perfoms the transform, the resulting document comes out at utf16 - and has dots (.) between each character in the file. Tomcat preserves the utf8. The IIS transformed document will work as a static page on the IIS site, and on the Tomcat Site. The Tomcat transformed page does not work. There is some javascript code in the XSL, but that has all been enclosed in CDATA tags. Has anyone come across anything like this before and could give me some pointers to more information? Thanks, Claire |
|
#2
|
|||
|
|||
|
If you are using mostly Latin characters (i.e. English language), you might want to try changing your source XML document to another encoding like iso-8859-1:
<?xml version="1.0" encoding="iso-8859-1"?> |
|
#3
|
|||
|
|||
|
I don't think I can...I'm using Xalan to do the transform, and I think that Xalan makes the output UTF-8 anyway - I had tried specifying the input files to UTF-16 (And I just tried specifying them both as iso-8859-1) to see if that made any difference, but the output was still in UTF-8.
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > can't move xml/xsl from IIS to Tomcat |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|