使用Sublime Text 3中的BOM将文件的编码设置为UTF8 [英] Set Encoding of File to UTF8 With BOM in Sublime Text 3

查看:496
本文介绍了使用Sublime Text 3中的BOM将文件的编码设置为UTF8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Sublime Text 3中打开文件时,在底部,我可以选择设置字符编码,如屏幕截图所示.

When I open a file in Sublime Text 3, at the bottom I have an option to set the Character Encoding as shown in the screenshot.

可以选择将其设置为 UTF-8 ,这在进行了一些研究之后就意味着没有BOM的UTF-8,但我想将其设置为 UTF-8有BOM ,如下所示:

There is the option to set it to UTF-8 , which after doing some research means UTF-8 Without BOM, but I want to set it to UTF-8 With BOM like shown below:

如何在ST3内执行此操作?

How can I do this from within ST3?

推荐答案

我也不能在角落按钮中设置带有BOM的UTF-8",但可以从菜单栏中进行更改.

I can't set "UTF-8 with BOM" in the corner button either, but I can change it from the menu bar.

文件"->使用编码保存"->使用BOM的UTF-8"

"File"->"Save with encoding"->"UTF-8 with BOM"

这篇关于使用Sublime Text 3中的BOM将文件的编码设置为UTF8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆