- BOM characters
#1
Posted 03 January 2009 - 03:54 AM
I have read that people experience this problem if working with php, well I'm working with php if that can help.
thank you
#2
Posted 03 January 2009 - 04:05 AM
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
#3
Posted 03 January 2009 - 04:13 AM
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
#4
Posted 03 January 2009 - 04:16 AM
But I must add, in the mean while while waiting for a reply I went and opened my php & css in notepad and then resave them both under ANSI insted of UTF-8 and the BOM disappear. I then went back and change it back, and as sure as Hell, there they are again.
I have manage to get my content on css back on my page, cause I was on the wrong level in my link.
#5
Posted 03 January 2009 - 04:17 AM
Quote
Sounds like that is your solution then -- make sure you are saving them as ANSI rather than UTF-8.
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
#6
Posted 03 January 2009 - 04:29 AM
#7
Posted 03 January 2009 - 04:30 AM
Quote
No, it shouldn't affect your PHP at all (well, with the exception of removing the symbols from displaying of course). It won't change any functionality though.
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
#8
Posted 03 January 2009 - 04:38 AM
#9
Posted 03 January 2009 - 04:54 AM
If you use a web-friendly text editor then just select utf-8 and save away. You may need to convert older files, and it is best to be consistent and save as utf-8 everywhere. Don't forget that one big advantage of utf-8 is that it is ASCII-compatible, so the transition is easy. "
http://www.webmaster...rum21/11759.htm
That seems to indicate that it is an issue with the way that Notepad saves files... though I can save as UTF-8 in Notepad and it seems to work fine for me, no BOM displays. Odd. The post is old though, so maybe it's no longer applicable.
I don't fully understand the difference between ANSI and UTF-8 myself... Basically, it seems like they are different character sets that allow you to save a range of characters, and UTF-8 is preferred, since it can store more characters. Someone may have to help me with me explanation here -- I checked Wikipedia but most of it is very technical and went over my head.
The point is, it sounds like UTF-8 is the way to go, maybe just don't use notepad to save the files. I wouldn't usually suggest using Notepad anyway, at least go with a text editor that has tabs and code highlighting and such.
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
#10
Posted 03 January 2009 - 05:40 AM
#11
Posted 03 January 2009 - 09:30 AM
#12
Posted 03 January 2009 - 11:56 AM
Quote
I second that -- Notepad++ is quite good.
Skills: Photoshop, Illustrator, HTML, CSS, jQuery, PHP and CodeIgniter
#14
Posted 11 June 2009 - 11:44 PM
For some reason, with Dreamweaver (and maybe other editors), the BOM (Byte Order Mark) is introduced when you have not asked it to be... and only on some pages. It's a bug. Problem is, the bug makes your page invalid to W3C standards. The DW validation tool won't pick this up
Download and install the free Notepad++.
http://notepad-plus....net/uk/site.htm
Whenever the W3C validator throws up the BOM error, just open up the file in Notepad++, click on the 'Format' option, tick 'encode in UTF-8 without BOM' and then save your file. The BOM is taken out and your page is valid again.
#15 Guest_ashim
Posted 06 May 2010 - 08:07 AM

Help














