Answer the question
In order to leave comments, you need to log in
Change encoding when saving in NetBeans
I have a website encoded in cp1251, I'm making a new project in NetBeans, downloading it via FTP, and opening it. Opens normally, everything is readable. Then I save and go to the site. And the file was saved in utf-8 encoding. I reopen the file, and indeed the encoding in it has become utf-8. Correcting. I save ... anyway. saves in utf-8 encoding. Although cp1251 is written in the project settings.
How to win it? translating the project to utf-8 is not an option.
Answer the question
In order to leave comments, you need to log in
You have set the project encoding to UTF-8 by default. Put windows-1251 there (Project properties -> Source files -> Encoding) and everything will be ok.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question