I have a requirement to create CSV (Comma Separated Values) files and place them in a ZIP file, using XQuery. This is easy enough to do, except that I need the CSV files in the ZIP file to be encoded with ISO-8859-1 instead of UTF-8 (because Excel expects that encoding!).
When I download a CSV file directly, I can use xdmp:set-response-encoding("ISO-8859-1")
to get what I want. But is there an equivalent technique to set the encoding of a text { "..." }
node that I insert into the ZIP?