D
D
Denis Ilinykh2011-10-09 19:32:36
Character encoding
Denis Ilinykh, 2011-10-09 19:32:36

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

3 answer(s)
G
Garg0t, 2011-10-12
@Garg0t

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.

D
des1roer, 2015-07-23
@des1roer

mr-stiher.ru/blog/default-encoding-netbeans.html

A
AndreyChizh, 2011-10-10
@AndreyChizh

I saw this: click
But I did not check the performance.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question