Chang the default encoding of notepad

来源:互联网 发布:网络律师 编辑:程序博客网 时间:2024/05/01 09:08
http://www.2cto.com/os/201205/132710.html

改Windows记事本(notepad)默认编码为Unicode或UTF-8的方法
 
Windows记事本默认编码ANSI无法满足需求, 每次都得“另存为”然后选择编码方式。
找到一解决方法如下:

1. 新建一个txt文档,不输入任何内容。然后“另存为”,将编码由默认的 ANSI 修改为 Unicode 或 UTF-8,并将新文档命名为 template.txt
 
2.将 template.txt 移动至系统目录 C:\Windows\addins\
 
3.新建文本文件 temp.txt ,复制一下内容至 temp.txt
Windows Registry Editor Version 5.00  [HKEY_CLASSES_ROOT\.txt\ShellNew]  "FileName"="C:\\Windows\\addins\\template.txt"  

将temp.txt 后缀改成 reg,双击导入注册表
 
4.此方法只适用于以“新建”右键菜单方式建立新文本文档,不适用于notepad.exe
0 0
原创粉丝点击