Each time I create a new file in Notepad2, the encoding is ANSI (1252).
I'd like instead to have UTF-8 as default. Is there a way to get this ?
3 Answers
File → Encoding → Default... → UTF-8
If the change doesn't stick when you restart Notepad2 change the default again and then try :
Settings -> Save Settings Now
This is using Notepad2 v4.2.25
-
-
1I have it in Notepad2 4.0.23, and it's been there since version 2.x. Commented Dec 9, 2009 at 13:00
-
-
If you receive a permission error when saving settings (e.g. if you installed Notepad2 in place of Notepad.exe) then you need to run it as Administrator before performing these steps. Commented Jun 7, 2022 at 16:01
-
1In
Notepad2.ini
, this corresponds to settingDefaultEncoding=3
. (Value 3 instead of 0.) Commented Mar 8, 2023 at 11:33
File -> Settings -> Preferences -> New Document, check UTF-8.
-
wrong!! for notepad++ you should NOT use
UTF-8 with signature
(BOM) ever! this is a mistake that could corrupt your source files (if you are a developer / programmer) and showing "weird icons" in your web-pages, and "you won't know why!" (because most of us won't turn on the "show all symbols"). for notepad2 it is "upside-down" there you should select"UTF-8"
and notUTF-8 with signature
!!!!– user429721Commented Dec 31, 2015 at 17:00 -
@EladKarako: Who says this is for Web use (in any case, no problem for IIS and most web servers on Windows)? In the Windows world, a BOM can be extremely useful for suitable applications to better understand the file contents.– harrymcCommented Dec 31, 2015 at 18:43
Run notepad2.exe with a parameter. Example in command prompt or other program:
Notepad2.exe /utf8 MyAnsiiFile.txt
This opens and loads an ASCII file and converts it to a UTF-8 file. Then, you need only to close Notepad2 and save.
notepad2 version 4.2.25