Firstly first I recommend you to simply use Notepad++ as a text editor or VSCode if you want a more developed one.
But if you still wanna use Notepad for some reason, here is the way :
- Right click on Desktop, then choose New > Text Document
- A text file
New Text Document.txt is created. Don't type anything and open it.
- Go to File > Save As... and choose UTF-8 under
Save and overwrite the existing file. Close the file.
New Text Document.txt to
- Go to
Start > Run... and type
regedit and press ok
- Navigate to
- Right-click in the right window > New >
String Value and rename it to
- Double click on
FileName and put
Value data: field and press ok
Remember, whenever you want to open a blank utf-8 txt document you will have to right click > New > Text Document and work from there.
Modifying the registry can cause serious damage pay attention, please.
From this thread.
Here is the Microsoft answer too