Apparently all YouTube comments have a UTF-8 BOM... at the end. YouTube, don't drink and webdev. @FakeUnicodepic.twitter.com/QSnzPdNhti
If it ain't broke, I'll fix it!
I'm porting Linux to Apple Silicon Macs at @AsahiLinux.
http://patreon.com/marcan | http://github.com/sponsors/marcan
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Add this Tweet to your website by copying the code below. Learn more
Add this video to your website by copying the code below. Learn more
By embedding Twitter content in your website or app, you are agreeing to the Twitter Developer Agreement and Developer Policy.
| Country | Code | For customers of |
|---|---|---|
| United States | 40404 | (any) |
| Canada | 21212 | (any) |
| United Kingdom | 86444 | Vodafone, Orange, 3, O2 |
| Brazil | 40404 | Nextel, TIM |
| Haiti | 40404 | Digicel, Voila |
| Ireland | 51210 | Vodafone, O2 |
| India | 53000 | Bharti Airtel, Videocon, Reliance |
| Indonesia | 89887 | AXIS, 3, Telkomsel, Indosat, XL Axiata |
| Italy | 4880804 | Wind |
| 3424486444 | Vodafone | |
| » See SMS short codes for other countries | ||
This timeline is where you’ll spend most of your time, getting instant updates about what matters to you.
Hover over the profile pic and click the Following button to unfollow any account.
When you see a Tweet you love, tap the heart — it lets the person who wrote it know you shared the love.
The fastest way to share someone else’s Tweet with your followers is with a Retweet. Tap the icon to send it instantly.
Add your thoughts about any Tweet with a Reply. Find a topic you’re passionate about, and jump right in.
Get instant insight into what people are talking about now.
Follow more accounts to get instant updates about topics you care about.
See the latest conversations about any topic instantly.
Catch up instantly on the best stories happening as they unfold.
Apparently all YouTube comments have a UTF-8 BOM... at the end. YouTube, don't drink and webdev. @FakeUnicodepic.twitter.com/QSnzPdNhti
It’s not a BOM - it’s a ZWNBSP. It’s a valid character and only a BOM if it’s at the beginning. As the actual bytes. It certainly is never a BOM if & encoded or encoded in any other form than the bytes defined as BOM.
U+FEFF is deprecated in favor of U+2060 when not a BOM. It is not &-encoded; that's Chrome being useful and making it explicit in the dev tools. The character comes back as a UTF-8 BOM (EF BB BF) in the JSON request for the comments. It's a BOM, in a stupid place.pic.twitter.com/jj0YXmRu4k
U+2060 is only the new preferred word joiner, U+FEFF is still ZWNBSP: http://ftp.unicode.org/Public/UNIDATA/UnicodeData.txt … It’s only BOM if it’s the UTF-8/16/32 bytes at start. But since the actual bytes are in here rather than & encoded, I now agree it’s most likely a template with a BOM being concatenated.
Of course if it were a BOM used the way BOMs are intended to be used it would have to be at the beginning of the file. There's no reason to have a legacy ZWNBSP here, so the point is it's most likely a BOM that snuck into a stupid place due to bad code.
See also http://unicode.org/faq/utf_bom.html#bom6 … "In the absence of a protocol supporting its use as a BOM and when not at the beginning of a text stream, U+FEFF should normally not occur." Yes, it will be treated as ZWNBSP, but that's for backwards compatibility and most likely a mistake.
Yes, with the new information that Chrome just rendered it with & encoding, I agree it’s a BOM that snuck into a template being concatenated. I guess someone needs to reconfigure their editor ;)
Even if &-encoded, I would just have expected that to be the output of a text transform over what was originally a BOM SNAFU :P
Possibly, but doing such replacements in your templates would still be a weird thing to do. At least if you set the encoding to UTF-8 anyway. I remember the days where you used Windows-1252 because IE was stupid and then & encoded everything outside of Windows-1252. *sigh*
You underestimate the number of layers to the onion of something as big as YouTube. It's easy for some weirdness to sneak in!
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.