Today Android Studio started to behave strange. Source java files opens as png files something. I can build and run the app and if I look in the file system the java files looks
When you save a file at notepad and open it in Android Studio, it will happen because notepad use a different encoding (ANSI).
You can set your project file encodings at Settings->Editor->File Encodings
You can also edit a unique file encoding at File->File Encoding
Make sure your project file encoding is UTF-8 (default)
Another important setting is File Types that you can take a look too. Here is mine .java file setting to you as example.