Flarp
Flarp

Reputation: 139

Can I have notepad not encode my files?

I have a notepad file. Well, its more of a .java file. The text is in Western MAC OS Roman (MacRoman) But when I save it, it gives me choices of how to encode it. Except, if I encode it, Java can't understand it! How can I have notepad NOT encode my files?

Upvotes: 0

Views: 116

Answers (2)

Tyler Durden
Tyler Durden

Reputation: 11532

If you are getting an encoding prompt, it is because there are non-ASCII characters in the text. Therefore, you must choose an encoding of some kind for those non-ASCII characters. You need to select an encoding which is understood by your IDE or whatever environment is loading the text. Normally, UTF-8 is understood by pretty much everything these days.

Upvotes: 1

peter.petrov
peter.petrov

Reputation: 39457

You cannot save your file without any encoding at all.
Whatever you do, it is still encoded in some way.
I suggest you encode it in UTF-8, then every decent
editor (including Java IDEs) will understand it.

Upvotes: 1

Related Questions