That's it . I want to open all the files in once (to make replacements). But notepad++ opens them all in ANSI and I have to go through each file and change the encoding to UTF-8.
In Notepad++ 5.9 there is an option in Settings -> Preferences -> New Document/Default Directory to automatically convert ANSI files to UTF-8 without BOM on open
Encoding
→ • UTF-8 without BOM
→ [x] Apply to opened ANSI files
–
Shuddering npp newfile.c
(where npp is just running n++ executable) in terminal - n++ asks me if it should create the non-existing file, I click on yes, and it's opened... as ANSI. But if I just click on "new file" in n++, it opens as UTF-8. –
Sesquialtera Settings -> Preferences -> New Document/Default Directory -> UTF-8
I believe you can change this in config.model.xml. I'm not sure if it is setting an unknown type as the default type, however, but it might be worth altering NewDocDefaultSettings
<GUIConfig name="NewDocDefaultSettings" format="0" encoding="0" lang="0" />
to
<GUIConfig name="NewDocDefaultSettings" format="0" encoding="4" lang="0" />
I think at worse case you might be able to record a Macro to automate this process.
config.xml
, the model file is just there as a starting point. –
Mona %userprofile%\%appdata%\Notepad++
. My entry looks like <GUIConfig name="NewDocDefaultSettings" format="0" encoding="4" lang="0" codepage="850" openAnsiAsUTF8="no" />
–
Conventional Late but for new Users,i had faced a similar problem
Step 1:
Settings -> Preferences -> New Document ->[Encodng] UTF-8 without BOM (check Apply to opened ANSI files)
but any how it hadn't solved mine , i searched out and found that its a bug!
Notepad++ v6.4.5 bug fixes:
Fix a crash issue while there's missing tag in functionList.xml. Fix
UTF-8 (w/o BOM) detection bug.
Step 2: That's all have an update to >= v6.4.5 and follow Step 1
look here to change default UTF8 settings for notepad ( new text documents ) - http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/default-utf-8-encoding-for-new-notepad-documents/525f0ae7-121e-4eac-a6c2-cfe6b498712c
© 2022 - 2024 — McMap. All rights reserved.