[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Outputting UTF-8
On 25.03.2017 15:39, Mark Wilson pubs@xxxxxxxxxxxx wrote:
While writing and testing my XSL stylesheet, the direct output was in UTF-8. However, as soon as I switched to result-document, I got garbage characters for diacritics from my original xml. That is, for 'ZC<rich', I get ' ZCB<rich'. Except for the absence of UTF-8, everything else works fine. I am assuming that I have declared result-document incorrectly, so have not included the input or full stylesheet. Below is the declaration: Well, with a text output format like .csv I don't think there is any way the application reading the file can identify the encoding so perhaps the software you use to read or display the CSV file simply treats it as an 8-bit encoding and that way the two byte UTF-8 representation of that non-ASCII character is displayed as two separate characters. So how do you look at the CSV, can't you change the settings of that software to open as UTF-8?
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|