Fix File Encoding - Prevent Visual Studio from adding BOM to ...
文章推薦指數: 80 %
The free Fix File Encoding extension prevents Visual Studio 2022/2019/2017 from adding BOM to UTF-8 files. Normally, when you edit a UTF-8 file in Visual ... Home Products Blog About FixFileEncoding ThefreeFixFileEncodingextensionpreventsVisualStudio2022/2019/2017fromaddingBOMtoUTF-8files. Normally,whenyoueditaUTF-8fileinVisualStudio,itaddsthebyteordermark(BOM)sequence0xEF,0xBB,0xBFtothebeginningofthefile.Sometimesitconfusesotherapplicationsfurtherprocessingthefile.Youcanselectanencodingmanually(File-AdvancedSaveOptions...orFile-SaveAs...-SavewithEncoding...),butyouneedtodoiteachtimeyoureopenthefile: FixFileEncodingautomaticallydetectswhenaUTF-8fileisopenedinVisualStudioandsetsitsencodingtoUTF-8withoutsignature.Ifyoudon'teditthefile,itremainsunmodified.Ifyoueditthefile,itwillbesavedwithouttheBOM. FixFileEncodingletsyouconfigurewhichfilestoencodebasedonthefilepathandthefileextension.Bydefault,only.htmand.htmlfilesareprotectedfromVisualStudio: .NETregularexpressionssyntaxisusedtoselectfiles.Someexamples: Protectallfilesfromthe"m:\temp"directory:^m:\\temp Protect".html"filesfromthe"m:\temp"directory:^m:\\temp.+\.html$ Protectallfiles:emptyregexbox. FixFileEncodingv1.5.0-February23,2022. DownloadNow Copyright2008-2022 VlasovStudio(BestinclassVisualStudioextensionsandtools)
延伸文章資訊
- 1How do I save file in UTF-8 without BOM - HESK.com
Download and install this powerful free text editor: Notepad++ · Open the file you want to verify...
- 2Fix File Encoding - Prevent Visual Studio from adding BOM to ...
The free Fix File Encoding extension prevents Visual Studio 2022/2019/2017 from adding BOM to UTF...
- 3Byte order mark - Globalization - Microsoft Learn
- 4Byte order mark - Wikipedia
The BOM is encoded in the same scheme as the rest of the document and becomes a noncharacter Unic...
- 5FAQ - UTF-8, UTF-16, UTF-32 & BOM - Unicode
Some byte oriented protocols expect ASCII characters at the beginning of a file. If UTF-8 is used...