I wanted to change the default of encoding in Notepad (ANSI) to UTF-8. According to following link went ahead and this work was done.
But still remains a problem. If create a text file, the default encoding is UTF-8 but if open the Notepad from Windows start menu's search, the default encoding of that is the ANSI.
Is there way for second mode that change the default encoding to UTF-8?
Best Answer
Note
Firstly first I recommend you to simply use Notepad++ as a text editor or VSCode if you want a more developed one.
Explanation
But if you still wanna use Notepad for some reason, here is the way :
New Text Document.txt
is created. Don't type anything and open it.Encoding:
, pressSave
and overwrite the existing file. Close the file.New Text Document.txt
toTXTUTF-8.txt
"TXTUTF-8.txt"
toC:\WINDOWS\SHELLNEW
Start > Run...
and typeregedit
and press okHKEY_CLASSES_ROOT\.txt\ShellNew
String Value
and rename it toFileName
FileName
and putTXTUTF-8.txt
intoValue data:
field and press okRemember, 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.
Source
From this thread.
Here is the Microsoft answer too