While the majority of power users will recommend to switch from Notepad to the wonderful Notepad++ or Notepad 2, it is still useful to make the original Windows Notepad save texts in UTF-8 by default.
First, ANSI, which is the default Notepad encoding) is outdated. There is no benefit in saving files in ANSI over saving them in UTF-8. So why not do it properly.
Second, occasionally I want to have the simplicity of Notepad and still be able to use symbols outside the ANSI standard.
So here is how to do it (solution taken from Microsoft Community; note that you need the admin rights to do it):
- Start Notepad, do not type anything, do File > Save As, choose UTF-8 encoding and save the file somewhere as TXTUTF-8.txt.
- Copy TXTUTF-8.txt to c:\windows\shellnew.
- Run regedit (registry editor) and navigate to HKEY_CLASSES_ROOT\.txt\ShellNew.
- Right click in the right window > New > “String Value” and rename it to FileName.
- Double click on “FileName” and put TXTUTF-8.txt into “Value data:” field and press OK.
Now the default encoding in Notepad is UTF-8.