Windows Settings new text document default encoding UTF-8

Source: Internet
Author: User

1. Open Notepad to create a new blank text document, do not enter any text, and then save the document and encode it in the Save As dialog box
The default ANSI is modified to Unicode or UTF-8, followed by the name of the file, where the new document is assumed to be named Unicode. Txt.

2. Copy the utf-8.txt to the implied system folder C:\Windows\ShellNew.

3. Open Registry Editor, navigate to: Hkey_classes_root\.txt\shellnew, create a new string value named FileName,
Set this string value to Utf-8.txt

The purpose of the above approach is to be. TXT text File "new" template Shellnew set to our custom Unicode-encoded saved
A blank text file. This way, if we create a new text document using the new-text document in the right-click menu of the Resource Manager,
Windows will automatically be C:\Windows\ShellNew\UNICODE. TXT as a template to create a new text document, the default encoding of the document
It becomes Unicode.

However, this method only applies to creating a new text document in the New Right-click menu mode. If we start Notepad from the Start menu first,
Then create a new text document, C:\Windows\ShellNew\UNICODE. The TXT template is not used, and the new text document remains
The default ANSI encoding will also be used.

Windows Settings new text document default encoding UTF-8

Related Article

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.