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

Mariusz Smykula updated JBEHAVE-533:
------------------------------------

    Attachment: wrong-encoding-sample-prj.tar.gz

Attached project is wrong always on Windows, with proper file.encoding too

With -Dfile.encoding=UTF-8 log:

{noformat}
(stories/sample.story)
Scenario: Przykładowy scenariusz numer 1 śżół
Given Given cośtamźłóś (PENDING)
When ByłóśżźńŚĄ (PENDING)
Then Gżegżółką (PENDING)
@Given("Given 
co\u0139\u203Atam\u0139\u015F\u0139\u201A\u0102\u0142\u0139\u203A")
...
Generating reports view to 
'e:\Jenkins\jobs\jbehave-encoding-test\workspace\target\jbehave' using formats 
'[console, txt, html, stats]' and view properties '{defaultFormats=stats, 
decorateNonHtml=true, viewDirectory=view, 
decorated=ftl/jbehave-report-decorated.ftl, 
reports=ftl/jbehave-reports-with-totals.ftl, maps=ftl/jbehave-maps.ftl, 
navigator=ftl/jbehave-navigator.ftl, views=ftl/jbehave-views.ftl, 
nonDecorated=ftl/jbehave-report-non-decorated.ftl}'
[encoding-test] DEBUG Could not find template in cache, creating new one; 
id=[ftl/jbehave-report-decorated.ftl[pl_PL,Cp1250,parsed] ]
[encoding-test] DEBUG Compiling FreeMarker template 
ftl/jbehave-report-decorated.ftl[pl_PL,Cp1250,parsed]  from 
jar:file:/C:/.m2/repository/org/jbehave/jbehave-core/3.4.4/jbehave-core-3.4.4.jar!/ftl/jbehave-report-decorated.ftl
[encoding-test] DEBUG Could not find template in cache, creating new one; 
id=[ftl/sh.ftl[pl_PL,Cp1250,parsed] ]
[
{noformat}



> Bad encoding in JBehave Raports with default configuration from jbehave 
> archetype in Windows
> --------------------------------------------------------------------------------------------
>
>                 Key: JBEHAVE-533
>                 URL: http://jira.codehaus.org/browse/JBEHAVE-533
>             Project: JBehave
>          Issue Type: Bug
>         Environment: Windows
>            Reporter: Mariusz Smykula
>         Attachments: wrong-encoding-sample-prj.tar.gz
>
>
> I have created project from archetype with command:
> {{mvn archetype:generate -DarchetypeGroupId=org.jbehave 
> -DarchetypeArtifactId=jbehave-spring-archetype}}
> and edited my.story file (added some international chars)
> After this 
> There is:
> ??A scenario with some pending steps 
> łóśťłśóaśęł??
> Should be:
> ??Scenario: A scenario with some pending steps 
> &#322;ó&#347;&#380;&#322;&#347;óa&#347;&#281;&#322;?? <- here is proper 
> encoded letters 
> I have edited pom.xml and added:
> {{<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>}}
> {{<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>}}
>  in properties section.
> The HTML and XML raport should be properly encoded after this. I think option 
> -Dfile.encoding=UTF-8 should be not required for this. Maven project should 
> have identical results on all platforms if properly configured.

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



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to