Hacker News new | past | comments | ask | show | jobs | submit login

> Which is why all my robots.txt files have a comment on the first line.

That doesn't stop a BOM being generated or consumed.




BOM is only a problem with strict syntaxes, which robots.txt is not an example of. If the "consumer" simply ignores invalid or meaningless lines, you can avoid issues from invisible characters by not having anything meaningful on the first line of your file.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: