[ 
https://jira.duraspace.org/browse/DS-1164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=27445#comment-27445
 ] 

Villu Ruusmann commented on DS-1164:
------------------------------------

If I recall correctly, then the problem was/is that the JDOM SAX API byte 
sequence that can be decoded using UTF-8 character encoding.

String#getBytes() returns byte array using platform-dependent character 
encoding (I believe that in my machines this is ISO-8859-1 or smth). 
String#getBytes("UTF-8") returns byte array using UTF-8 encoding.

I checked DSpace source code at the time of reporting this issue and you were 
using String#getBytes("UTF-8") everywhere, except for this one particular case 
in SimpleHTMLFragment.java. So, I suggest that you bring it up to date.
                
> XML InputStream is created using a platform-specific character encoding
> -----------------------------------------------------------------------
>
>                 Key: DS-1164
>                 URL: https://jira.duraspace.org/browse/DS-1164
>             Project: DSpace
>          Issue Type: Bug
>          Components: XMLUI
>    Affects Versions: 1.8.2
>         Environment: Windows
>            Reporter: Villu Ruusmann
>         Attachments: SimpleHTMLFragment.patch, stacktrace.txt
>
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> XML InputStream should be created using the UTF-8 character encoding. Please 
> see the attached patch file.

--
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

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Dspace-devel mailing list
Dspace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-devel

Reply via email to