[
https://jira.duraspace.org/browse/DS-1528?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27996#comment-27996
]
Tim Donohue commented on DS-1528:
---------------------------------
I can replicate the "garbled" text in the final dspace.cfg by doing the
following:
1) Add UTF-8 characters to build.properties
2) (on Linux, run) "iconv -f iso-8859-1 -t utf-8 build.properties >
utf8.properties" (This statement tells 'iconv' to convert build.properties
encoding from ISO-8859-1 to UTF-8)
3) The final "utf8.properties" file has the *exact same* garbled text as is
produced by Maven in the final dspace.cfg file.
This test seems to imply that Maven is still *reading* the build.properties
file as if it is using ISO-8859-1 encoding. Then Maven tries to auto-convert it
to UTF-8 and the special characters get garbled in the conversion. Finally,
the garbled characters are written to the dspace.cfg file.
This hasn't brought me any closer to a solution, but at least I think I'm
closer to understanding what may be happening.
> build.properties doesn't support UTF-8 encoding
> -----------------------------------------------
>
> Key: DS-1528
> URL: https://jira.duraspace.org/browse/DS-1528
> Project: DSpace
> Issue Type: Bug
> Affects Versions: 3.0, 3.1
> Reporter: Tim Donohue
> Priority: Major
> Fix For: 3.2
>
>
> This is related to DS-1469
> When UTF-8 characters are placed in the build.properties file, they are
> improperly filtered into the final dspace.cfg file.
> This seems to be the fault of the maven-resources-plugin. However, according
> to it's documentation, it is supposed to support UTF-8 encoding:
> http://maven.apache.org/plugins/maven-resources-plugin/examples/encoding.html
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel