WebHelp causes MalformedInputException when file names contain umlauts

Post here questions and problems related to editing and publishing DITA content.
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

WebHelp causes MalformedInputException when file names contain umlauts

Post by Patrik »

Hi,

when I perform a WebHelp transformation on a DITA map with topics that have umlauts in their file name I get an exception:

Code: Select all


...DITA-OT\plugins\com.oxygenxml.webhelp\build_dita.xml:161: Fatal error during transformation using ...DITA-OT\plugins\com.oxygenxml.webhelp\xsl\dita\indexterms\collectIndexterms.xsl: Failed to read input file file:///.../DITA-OT/plugins/com.gdvdl.dita/test/temp/webhelp-responsive/fullditatopic.list (java.nio.charset.MalformedInputException); SystemID: file:/...DITA-OT/plugins/com.oxygenxml.webhelp/xsl/dita/indexterms/collectIndexterms.xsl; Line#: 30; Column#: -1
Obviously, a workaroun dis to avoid umlauts in filenames. But maybe there's a way to use the same coding when reading the file as it was used when writing it?

Thanks and regards,
Patrik
alin
Site Admin
Posts: 268
Joined: Thu Dec 24, 2009 11:21 am

Re: WebHelp causes MalformedInputException when file names contain umlauts

Post by alin »

Hello,

This issue has already been fixed and it will be available in the next Oxygen release (18.1).
If you are running Oxygen 18.0 then you can download a patch for this issue from:
http://oxygenxml.com/forum/files/webhel ... eption.zip
The patch contains two files:
  • collectIndexterms.xsl
  • build_dita_template.xml
Follow these steps to apply the patch to your Oxygen installation:
  1. Locate the WebHelp plugin directory. Depending on your current DITA-OT distribution, it is located in:
    1. For DITA-OT 1.8:

      Code: Select all

      {Oxygen-Installation-directory}/frameworks/dita/DITA-OT/plugins/com.oxygenxml.webhelp/
    2. For DITA-OT 2.x:

      Code: Select all

      {Oxygen-Installation-directory}/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.webhelp/
    You can find out what is your current DITA-OT distribution in the DITA Preferences page: Main Menu -> Options -> Preferences: see the selected value for the DITA Open Toolkit option.
  2. Replace the {webhelp-plugin-directory}/xsl/dita/indexterms/collectIndexterms.xsl file with collectIndexterms.xsl
  3. Replace the {webhelp-plugin-directory}/build_dita_template.xml file with build_dita_template.xml
  4. Run the DITA OT integrator:
    1. In the DITA Maps Manager view click on the Configure Transformation Scenario(s) action in the toolbar
    2. Select and run the Run DITA OT Integrator transformation scenario
Alin Balasa
Software Developer
<oXygen/> XML Editor
http://www.oxygenxml.com
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: WebHelp causes MalformedInputException when file names contain umlauts

Post by Patrik »

Thanks, it's working now.

Patrik
Post Reply