GreenPepper Seeds of GreenPepper
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Encoding issue  XML
Forum Index -> Support
Author Message
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
fdenommee

[Avatar]
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.
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.
fdenommee

[Avatar]
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:
 -Dfile.encoding=UTF8
 

Can you show me the error message you got when executing the specification ?

Cheers,
Francois D.
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
 
Forum Index -> Support
Go to:   
Powered by JForum 2.1.6 © JForum Team