更改使用记事本保存文件的默认编码++
就是这样 。我想一次打开所有文件(以进行替换)。但是 notepad++ 以 ANSI 格式打开它们,我必须遍历每个文件并将编码更改为 UTF-8。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
在Notepad++ 5.9中,设置->中有一个选项首选项->新文档/默认目录可在打开时自动将 ANSI 文件转换为 UTF-8,无需 BOM
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
设置->首选项->新文档/默认目录 -> UTF-8
Settings -> Preferences -> New Document/Default Directory -> UTF-8
我相信你可以在 config.model.xml 中更改它。但是,我不确定它是否将未知类型设置为默认类型,但可能值得将 NewDocDefaultSettings 更改
为
我认为在最坏的情况下,您可能能够记录一个宏来自动执行此过程。
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
to
I think at worse case you might be able to record a Macro to automate this process.
迟到了,但对于新用户来说,我遇到了类似的问题
第 1 步:
设置->首选项->新文档 ->[Encodng] UTF-8 without BOM(选中“应用于打开的 ANSI 文件”),
但无论如何它都没有解决我的问题,我搜索了一下,发现它是一个 bug! strong>
Notepad++ v6.4.5 错误修复:
修复 functionList.xml 中缺少标签时的崩溃问题。修复
UTF-8(无 BOM)检测错误。
步骤2:
全部更新到 >= v6.4.5 并按照步骤 1 进行操作
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