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?


Open Notepad. Go to 'format', 'font' and change 'script' to 'Central European'. Simple.

  • 2
    Does central european necessarily mean UTF-8? – Journeyman Geek May 14 '17 at 9:57


Firstly first I recommend you to simply use Notepad++ as a text editor or Atom if you want a more developed one.


But if you still wanna use Notepad for some reason, here is the way :

  1. Right click on Desktop, then choose New > Text Document
  2. A text file New Text Document.txt is created. Don't type anything and open it.
  3. Go to File > Save As... and choose UTF-8 under Encoding:, press Save and overwrite the existing file. Close the file.
  4. Rename New Text Document.txt to TXTUTF-8.txt
  5. Copy "TXTUTF-8.txt" to C:\WINDOWS\SHELLNEW
  6. Go to Start > Run... and type regedit and press ok
  7. Navigate to HKEY_CLASSES_ROOT\.txt\ShellNew
  8. Right-click in the right window > New > String Value and rename it to FileName
  9. Double click on FileName and put TXTUTF-8.txt into 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.