Encoding Eclipse -> Intellij

Asked

Viewed 265 times

4

I imported a project into Intellij that was created in the eclipse.

The project is pretty big.

I’m having a problem with encoding, in the eclipse is as Default o Cp1252

And Intellij is into UTF-8

How to change to Cp1252 or migrate the entire project to UTF-8 without having to rewrite everything?

If I set UTF-8 in the Eclipse

Se eu setar UTF-8 no Eclipse

1 answer

1

To change the file creation encounter on eclispe, I do the following steps:

Menu Window>Preference. In treeview the sketch go to General>WorkSpace and change text file encoding for UTF-8.

inserir a descrição da imagem aqui

  • If I modify in eclipse, the code that is in eclipse will get error.

  • @Henriquesantiago what kind of mistake?

  • I’ve even tried!!

  • If I set from cp1252 to UTF-8, for example, it is giving error, the caractéres are 'crazy'

  • I put in the question @rray

  • @Henriquesantiago if you find only this project through the menu project>properties other projects are right including this migrated?

  • Yes, the others are still without mistakes.

  • @Henriquesantiago the comment solved the problem then?

  • No, it didn’t. It keeps giving the error. I think I’ll have to rewrite.

  • look at the String I’m going through the List constructor.. Exception(); it has invalid characters

  • @Henriquesantiago if you create a new Workspace configured as utf-8 and import this project to this Workspace continues the problem?

  • Yes, the invalid characters continue

  • That doesn’t solve it. It will be necessary to save all the files with the correct encoding, since apparently they have been edited in one that has characters not supported by UTF-8.

Show 8 more comments

Browser other questions tagged

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