[ 
http://jira.codehaus.org/browse/JIBX-162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski updated JIBX-162:
---------------------------------


It's difficult to tell without the actual files, but I suspect the cause of the 
error was that TestRoundtrip was doing the comparison between the actual and 
expected output using a FileReader for the expected output. Since FileReader 
always uses the default character encoding for the JVM, passing the data in 
this way would show garbage characters.

I've changed the TestRoundtrip code to use the character encoding found for the 
input file when reading the expected output file, which should take care of 
this problem.

> org.jibx.extras.TestRoundtrip not handling UTF-8 properly
> ---------------------------------------------------------
>
>                 Key: JIBX-162
>                 URL: http://jira.codehaus.org/browse/JIBX-162
>             Project: JiBX
>          Issue Type: Bug
>          Components: core
>    Affects Versions: JiBX 1.1.3
>         Environment: Eclipse/Ant
>            Reporter: Rodrigo Dombrowski
>            Priority: Minor
>             Fix For: JiBX 1.1.6
>
>
> Output when using UTF-8 xml files during the round-trip. (using class 
> org.jibx.extras.TestRoundtrip)
> The text content should be equal.
> [java] Different text content - from  line 17, col 13 to  line 17, col 16
>      [java] "
>      [java] <table background="undefined" bgcolor=""><tr><TD valign="top"><A 
> title="Ir para a página inicial do Google" 
> href="http://www.google.com.br/webhp?hl=pt-BR"; 
> id="logo">Google<SPAN></SPAN></A></TD></tr></table>
>      [java] " (length 214 vs. "
>      [java] <table background="undefined" bgcolor=""><tr><TD valign="top"><A 
> title="Ir para a página inicial do Google" 
> href="http://www.google.com.br/webhp?hl=pt-BR"; 
> id="logo">Google<SPAN></SPAN></A></TD></tr></table>
>      [java] " (length 213)
>      [java] Error round-tripping class: blogitfast.structure.Structure
>      [java] with input file structure-example.xml and output compared to 
> structure-example.xml
>      [java] Saved output document file path 
> C:\Users\Rodrigo\WORK\BlogItFastServer\temp.xml

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

       

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to