| Author |
Message |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 09/02/2010 12:04:58
|
dam
Joined: 05/02/2010 05:20:39
Messages: 5
Offline
|
Hi,
We have fixed the encoding in utf-8 for workspace and all files.
We are noticed that java code is bad generated(create fixture function). Actually the encoding seems not to be in utf8 but probably in cp1252.
For information, we are using windows for ours developments.
In addition, the tests execution don't work, the methods wait a string with an encoding end receive an another string encoded differently.
We use:
Spring Tools Suite 2.0.3
Confluence 3.0.2
Greenpepper 2.6
Damien
|
|
|
 |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 09/02/2010 12:18:41
|
fdenommee
Joined: 25/01/2008 10:23:16
Messages: 587
Offline
|
Hi,
Since you are on Windows, the default encoding for Java on this platform is Cp1252 as you mention.
Does the Confluence server also on Windows ?
I will add an issue to make sure to use the encoding define in Eclipse (as STS is Eclipse).
Cheers,
Francois D.
|
|
|
 |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 09/02/2010 15:55:01
|
dam
Joined: 05/02/2010 05:20:39
Messages: 5
Offline
|
Hi,
The confluence server is an linux server (red hat). The encoding on confluence is utf8 (encoding of confluence database is utf8 too).
So when you use the default encoding (cp1252) on our development environment, there is not issue.
Our purpose is to launch the same specifications on development and on our continous environment.
But when you use utf8 on development environment the problem appears.
|
|
|
 |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 09/02/2010 16:12:49
|
fdenommee
Joined: 25/01/2008 10:23:16
Messages: 587
Offline
|
Hi,
I did spent time looking around our code about the fixture generation and we delegate the most of it to Eclipse internals...
Maybe to make sure the file is generated in UTF-8, put this in the eclipse.ini
Code:
Can you show me the error message you got when executing the specification ?
Cheers,
Francois D.
|
|
|
 |
![[Post New]](/site/templates/default/images/icon_minipost_new.gif) 10/02/2010 06:16:08
|
dam
Joined: 05/02/2010 05:20:39
Messages: 5
Offline
|
Hi,
It works with the parameter -Dfile.encoding in the .ini file
Thanks a lot
Damien
|
|
|
 |
|
|