Convert program to other encoding in java Ex:(UTF-8 to ansi)

Asked

Viewed 160 times

0

Good afternoon guys, my code from nothing passed to a different encoding, which I believe to be UTF-8, at the time of executing the code happens the following error:

   unmappable character for encoding UTF-8

There is no way to pass each part of the code in hand, as it was error in more than 200 words. Someone has some solution?

I’ve tried to put

           <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <encoding>UTF-8</encoding>
                </configuration>
            </plugin>

1 answer

0

If you’re using the Eclipse, - Right click on the project > - Properties (Properties), - "Resource" (Resources) will already be selected in the first tab that opens, - Has a label named "Text file enconding" - check which is set and which one you need to change.

  • I’ve tried to dial UTF-8 there too and by default comes ANSI, but it didn’t work. :/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.