8

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 ?

Henke
  • 813
  • 1
  • 8
  • 20

3 Answers3

7
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

u1686_grawity
  • 426,297
  • 64
  • 894
  • 966
1

File -> Settings -> Preferences -> New Document, check UTF-8.

image

Gaff
  • 18,569
  • 15
  • 57
  • 68
harrymc
  • 455,459
  • 31
  • 526
  • 924
  • 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 not `UTF-8 with signature`!!!! –  Dec 31 '15 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. – harrymc Dec 31 '15 at 18:43
0

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

Excellll
  • 12,627
  • 11
  • 51
  • 78