The byte order mark (BOM) signals the endianness of a text stream.
Questions tagged [bom]
9 questions
10
votes
1 answer
Save UTF-8 without BOM Visual Studio 2012
It seems that Visual Studio 2012 hates UTF-8 without BOM and always adds it, resulting in an empty line in PHP pages.
How can I change the encoding to UTF-8 without BOM (or at least to Unicode...)
Cristy
- 391
10
votes
2 answers
How to change LibreOffice default text encoding?
I want to change the default text encoding used by LibreOffice when saving a document as a Text document. Where can I find this setting?
I want it to be UTF-8 WITHOUT the BOM, which I believe is called ASCII/US in LibreOffice.
I do know that there…
Bakuriu
- 207
9
votes
4 answers
File encoding not preserved after saving in Notepad++
I'm using Notepad++ for editing my PHP scripts.
However, I found a strange problem: when changing the encoding from ANSI to UTF-8 (without BOM), saving, closing, re-loading – then checking encoding: is still ANSI.
Any ideas what's wrong? It always…
Fuxi
- 803
4
votes
1 answer
Notepad++ save as UTF-16 file without byte order mark
Is there any way to save a file in Notepad++ using the UTF-16 encoding (little endian), but without adding the byte order mark? For example, if a text file is saved in notepad++ using the little endian UTF-16 encoding (Encoding > UCS-2 LE BOM), it…
TheTVGuy
- 51
1
vote
0 answers
Change the default encoding in the Windows search dialog
In Windows 10, I have a directory of sql files.
The file command (from mingw i believe) outputs such:
Little-endian UTF-16 Unicode text, with CRLF, LF line terminators
Because of the encoding, i don't see any results when searching by text, from…
XoXo
- 111
1
vote
1 answer
sh script with Byte Order Mark
Is the Linux "sh" able to run Unicode text script files with BOM (Byte Order Mark) at the beginning?
I really need this and do not want to remove BOM.
Paul
- 986
0
votes
0 answers
Remove BOM mark in sftp username when using openssh
I'm running an SFTP server using openssh 1:8.9p1-3ubuntu0.1 on Ubuntu 22.04. A reoccurring issue with connecting clients is the username is prefixed with \357\273\277 one or more times. This is a UTF-8 BOM mark which is not needed and this login…
kmiller
- 1
0
votes
1 answer
How to redirect input in Powershell without BOM?
I am trying to redirect input in Powershell by
Get-Content input.txt | my-program args
The problem is the piped text is preceded with a BOM (0xefbbbf), and my program cannot handle that correctly. Is there any way to redirect the input without…
user
- 111
-1
votes
1 answer
Use Microsoft Word to save a UTF-8 file without the BOM
I would like to use Microsoft Word (on a PC specifically) to open, edit, and then save again a plaintext file in UTF-8 format, but without adding the BOM character sequence to the beginning.
Let's just go ahead and assume that I'm asking in regard…
psoft
- 275