Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IDEA intellij character support

Is there a way to change character support in IntelliJ?

Between working with IntelliJ/Eclipse/github, I have bullet used in a some lines of text that is causing an annoyance.

Eclipse shows the bullet fine, as does github, but when I pull the file down into an intelliJ environment the bullet is replaced with an unkown symbol.

• => �

Now when I copy-pasta that bullet mark off of github's web viewer into the file, it looks, works, and compiles fine. Upon committing to github, the bullet then changes to another set of characters, then making me have to fix it again.

• => •

Thoughts on how I can avoid having to always fix this when switching between environments?

like image 799
TasteeOOoohhhs Avatar asked Oct 22 '22 09:10

TasteeOOoohhhs


1 Answers

Make sure the file has correct encoding and IDE is configured to create new files in the desired encoding.

IntelliJ IDEA doesn't provide a seamless way to convert between different encodings, so if your file already has incorrect encoding, you will need to convert it in some other tool.

like image 83
CrazyCoder Avatar answered Oct 27 '22 09:10

CrazyCoder