[ 
https://issues.apache.org/jira/browse/SERF-197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17215338#comment-17215338
 ] 

Branko Čibej edited comment on SERF-197 at 10/16/20, 11:07 AM:
---------------------------------------------------------------

What you're seeing is not "BOM for UTF-16", it is the code point U+FEFF encoded 
as UTF-8 ({{ef bb bf}}). It's the deprecated zero-width non-breaking space, not 
a byte-order mark. There's absolutely nothing wrong with it being there, it 
does not make the HTML invalid because it counts as whitespace.

Yes, it's a pain that there are still editors out there that add such cruft. 
But it's neither critical nor wrong, it's just surprising to people who send 
this through {{less}} without sending it through {{hexdump}} first. :)

And by the way, {{head}} will not display the magic code point.


was (Author: brane):
What you're seeing is not "BOM for UTF-16", it is the code point U+FEFF encoded 
as UTF-8 ({{ef bb bf}}). It's the deprecated zero-width non-breaking space, not 
a byte-order mark. There's absolutely nothing wrong with it being there, it 
does not make the HTML invalid because it counts as whitespace.

Yes, it's a pain that there are still editors out there that add such cruft. 
But it's neither critical nor wrong, it's just surprising to people who send 
this through {{less}} without sending it through {{hexdump}} first. :)

> Website content starts with U+FEFF
> ----------------------------------
>
>                 Key: SERF-197
>                 URL: https://issues.apache.org/jira/browse/SERF-197
>             Project: serf
>          Issue Type: Bug
>            Reporter: Sebb
>            Priority: Minor
>
> Curl shows that the Serf web-pages start with U+FEFF.
> $ curl -s https://serf.apache.org | head -1 | more
> <U+FEFF><!DOCTYPE html>
> This does not seem right.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to