1. 程式人生 > >Chang the default encoding of notepad

Chang the default encoding of notepad

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