Community
Participate
Working Groups
Build Identifier: 20100617-1415 If the input data for the class org.eclipse.xtend.typesystem.xsd.XMLBeautifier in a standalone-workflow does not match the encoding of the workspace (platform encoding?), the input cannot be processed properly. Example: - Workspace-enc: Cp1252 - Data-enc: UTF-8 => Beautifier aborts with encoding-error Reproducible: Always Steps to Reproduce: 1. Set workspace-encoding to encoding that is not UTF-8 2. Tell Xpand to generate UTF-8 code 3. Run workflow with beautifier Result: Beautifier aborts with encoding-error Attached you will find a patched version of the XMLBeautifier class with this problem fixed.
Created attachment 174275 [details] XMLBeautifier.zip
Created attachment 175921 [details] Patch for set the file encoding before read and write The file encoding should be determined before reading the file and set to the output for writing the beautified file.
Patch looks good to me although tests are missing.
Patch applied