Set default encoding for new text document in win7

Source: Internet
Author: User
1. open notepad to create a new blank text document without entering any text, and then save this document by changing the encoding from the default ANSI to Unicode or UTF-8 In the Save As dialog box, next, name the file. Assume that the new file is named Unicode. TXT. 2. Copy Unicode. txt to the implicit system folder C: \ WINDOWS \ shellnew. 3. Open the Registry Editor and navigate to hkey_classes_root \. txt \ shellnew. Create a New String Value named filename and set this string value to C: \ WINDOWS \ shellnew \ Unicode. txt. The purpose of the above practice is to set the "new" template shellnew of the. TXT text file as a custom white text file saved in Unicode encoding. In this way, if we use "new"-"Text Document" in the right-click menu of resource manager to create a new text document, Windows will automatically use c: \ windows \ shellnew \ Unicode. TXT is used as a template to create a text document. The default encoding of the document is Unicode. However, this method only applies to creating a new text document by right-clicking the new menu. If we start notepad through the Start menu, and then create a new text document, c: \ windows \ shellnew \ Unicode. the TXT template will not be used, and the new text document will still use the default ANSI encoding.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.