XSLT redirect:write and encoding

Discussion in 'Java' started by Thomas Kellerer, Oct 23, 2007.

  1. Hello,

    I'm using the JDK's built in XSTL processor and I'm trying to create
    multiple output (HTML) files from a single XML file. This is working
    fine so far using the extension redirect:write (or the newer alias
    xsltc:eek:utput).

    My problem is, that the files generated using xstlc:eek:utput (or
    redirect:write) are using the wrong encoding. The XML file is UTF8 and
    the "primary" file created by the XSLT is also correctly encoded.

    But all files created with xstlc:eek:utput are written with the default
    encoding of my system.

    I can work around this using -Dfile.encoding when starting the Java
    program, but I'd like to control this from within the XSLT file.

    Any ideas?

    Regards
    Thomas
    Thomas Kellerer, Oct 23, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    18,778
    Jon Skeet [C# MVP]
    Jun 9, 2004
  2. Replies:
    3
    Views:
    475
    Joris Gillis
    Jul 6, 2005
  3. Petterson Mikael

    Write to error log using redirect:write

    Petterson Mikael, Sep 11, 2006, in forum: XML
    Replies:
    1
    Views:
    822
    Joe Kesselman
    Sep 11, 2006
  4. Sal
    Replies:
    1
    Views:
    359
  5. Replies:
    2
    Views:
    347
Loading...

Share This Page