Is it possible to change the default encoding in notepad?

16

8

On windows 7 (x64), the default option, for saving text files in notepad is ANSI. One can select other encoding from the combo box, however, I'd like this option to be the default.

akurtser

Posted 2010-05-23T18:31:38.030

Reputation: 635

Question was closed 2014-08-07T05:33:25.667

Here simplest fix - http://www.softpedia.com/get/System/OS-Enhancements/Notepad-Default-UTF-8-Unicode-Creator.shtml (It will automatically associate UTF8 with Notepad. No need to install anything, just run once )

– T.Todua – 2014-08-05T06:48:07.893

Answers

13

Idea for saving it in UTF-8 by default, haven't found a different encoding way as default.

  1. Right click -> New -> Text Document

  2. Open it, and do NOT type anything into it.

  3. Go to File -> Save As... and choose UTF-8 under Encoding, press Save and overwrite 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. 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.

  10. Test it: Create new .txt document (Right click -> New -> Text Document). Open it and go to File -> Save As... and see look at the encoding to make sure it defaults to UTF-8.

jbkkd

Posted 2010-05-23T18:31:38.030

Reputation: 273

1It accomplishes its purpose well, however, sometime, I find myself starting new file with no intentions of saving it, and ending up with something that I'd like to save. That's usually when I encounter that problem, and if I'm not careful enough when saving, it can destroy a document written in a foreign language...

It's all a matter of habits, but I hoped there might be some way to change it permanently. – akurtser – 2010-05-24T16:28:36.863

This doesn't answer the question, of course that's why is not marked as answer. – Mehdi Dehghani – 2019-06-08T07:45:29.230

Is there any one-click solution? – PHPst – 2012-10-07T08:55:25.157

6

In windows 7 (perhaps other systems as well) you need to set the system locale - regional settings > administrative tab > change system locale to the language of your choice. This solved my problem of Hebrew fonts not displaying properly in notepad.

Tal Segal

Posted 2010-05-23T18:31:38.030

Reputation: 236