[ http://jira.codehaus.org/browse/MPXDOC-195?page=comments#action_64446 ]
Lance Bader commented on MPXDOC-195: ------------------------------------ I found an old Red Hat Linux system where I could run the supplied test case. Precisely, it is Red Hat Enterprise Linux V4 update 3 for i386. I installed Maven 1.1-beta-2 with maven-xdoc-plugin-1.9.2 and the attached test case. I created a script that matches the actions in build_de.bat, build_en.bat, build_fr.bat, and build_zh_TW.bat. Except for the unrelated problem caused by poison properties files in src\i18nBundles (see the problem report in a previous comment), the HTML was generated CORRECTLY. NOTE: I did NOT have to modify the LANG or LC_CTYPE environment variables, as suggested in the xDoc plugin FAQ or in http://jira.codehaus.org/browse/MPXDOC-184 . By default, LANG was already set to LANG="en_US.UTF-8". I dumped the Java system properties and observed that file.encoding=UTF-8 by default. So, that begs the question, "Why doesn't this work on a Windows XP system when you use -Dfile.encoding=UTF-8 to override the default file encoding?" Its a mystery. > xDoc plugin scrambles UTF-8 source files when generating UTF-8 HTML > -------------------------------------------------------------------- > > Key: MPXDOC-195 > URL: http://jira.codehaus.org/browse/MPXDOC-195 > Project: maven-xdoc-plugin > Type: Bug > Versions: 1.9.2 > Environment: Maven 1.1-beta-2 and maven-xdoc-plugin-1.9.2 on a Windows XP > workstation with IBM Java SDK V1.4.2 > Reporter: Lance Bader > Attachments: UTF8EncodingProblem.zip > > > When I attempt to build UTF-8 encoded HTML from UTF-8 XML source files, every > special character is scrambled. > We are using the xDoc plugin to generate the HTML for our on-line user guide. > We sent the English source files and the default properties file to 9 > translation centers. The translators returned valid UTF-8 source, but xDoc > will not generate valid UTF-8 HTML. > I have attached a very small subset of our product that demonstrates this > problem. See the README.txt file within the ZIP archive for information > about how to use the supplied scripts to build the output for German, > English, French, and Traditional Chinese and view the result. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
