Encoding in Eclipse EE

1

I have the following problem: I have a web service in Java using Jetty, it works normally if I request other applications for the server, but my unit tests are returning the coding all wrong.

{"message":"Não foi possível criar o usuário. Error: E-mail já cadastrado.","status":"error"}

I'm using the Eclipse IDE, and I've tried modifying it in several places, but none works:

I tried

File > Properties > Resource > Text File Encoding;

Window > Preferences > General > Workspace > Text File Encoding

Botão direito no projeto > Preferences > Text File Encoding

My method that performs the request looks like this:

public static void executeMethod() throws IOException, HttpException {
        PostMethod post = createRequestPost(params, SIGNUP_ROTE);
        int status = HttpClient().executeMethod(aMethod);;
        String resultado = post.getResponseBodyAsString();
    }

Could anyone help me?

    
asked by anonymous 25.03.2014 / 01:59

1 answer

1

You can right click on your project and go to Properties .

In the Resource tab you have the group box " Text file encoding

You can switch to there to use special characters.

Editing: allows you to use special characters even . Type ☺ and things like that.

The allows you to use accents and cedilla. ;)

    
23.04.2014 / 19:43