Subject:Encoding problem in text preview enterprise build 1928k/l Author:Kurt Wald Date:08 Jan 2016 03:01 PM
There seems to be an encoding problem with the text preview encoding in Stylus Studio 2015 Enterprise 1928k/l.
The attached PNG shows the output file and the preview of a transformation with xslt-encoding utf-8 and output-encoding utf-8. The custom processor used, internally runs Saxon 220.127.116.11. All result values are provided by Java extension functions returning String.
The preview output obviously is interpreted as iso-8859-1 instead of utf-8.
If I change the output encoding of the transformation to iso-8859-1 both output file and preview show the correct german umlaut.
Subject:Encoding problem in text preview enterprise build 1928k/l Author:Kurt Wald Date:08 Jan 2016 08:09 PM
I have created a stylesheet and a little Java extension to demonstrate the problem. You find these in example.zip, together with saxon 18.104.22.168.
In doing this I think I came across the main problem. In the preview window the opening <? is dtripped from the XML prolog. Could this be a BOM issue?
Subject:Encoding problem in text preview enterprise build 1928k/l Author:Ivan Pedruzzi Date:14 Jan 2016 04:07 PM
Thanks for the test case. The encoding problem affects only data generated by external processor. I assume you are forced to use and old version of Saxon Home because you need Java extension function support.
We have preliminary Stylus Studio package (1928m) for you to try