maven 1.x tests encoding problems

Hi guys!

I've broken my head with it. I can't setup UTF-8 symbols to be correctly
rendered for tests.

I see following strings at ..\target\test-reports\*
TEST-${my_project_name}.GeneralTestSuite.txt* :
...
values (142,'????','BL');
(142,'?????????','VK');
...

Here ??? - should be UTF-8 symbols.

And at my ..\target\test-reports\*TEST-${my_project_name}.GeneralTestSuite.xml
*I see*:

*<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="0" failures="0" name="{my_package}.GeneralTestSuite"
tests="9" time="6.281">
  <properties>
...
    <property name="sun.io.unicode.encoding"
value="UnicodeLittle"></property>
    <property name="sun.jnu.encoding" value="*Cp1251*"></property>
    <property name="file.encoding" value="*Cp1252*"></property>
...
    <property name="maven.compile.encoding" value="*UTF-8*"></property>
    <property name="maven.test.compile.encoding" value="*UTF-8*"></property>

...
  </properties>
</testsuite>


How I run tests:
*maven *-Dlog4j.debug=true -Dsun.jnu.encoding=UTF-8 -Dfile.encoding=UTF-8 *
test:test*

What I have at my *project.properties* is:
...
maven.compile.source=1.4
maven.compile.target=1.4
maven.compile.encoding=UTF-8
...
*maven.junit.fork*=yes
maven.test.compile.encoding=UTF-8
*maven.junit.sysproperties*=file.encoding log4j.debug sun.jnu.encoding
file.encoding=UTF-8
log4j.debug=true
sun.jnu.encoding=UTF-8
...

What I am doing wrong?


Thanks, in advance!



-- 
________________________
Best regards,
Alexandr Khlystov

Reply via email to