Solved

Validation W3 -  Line 1, Column 1: character "¿" not allowed in prolog

Posted on 2013-12-22
3
556 Views
Last Modified: 2014-03-24
Hi all.

I'm going through all my pages to fix validation errors.
I'm doing pretty oki (good way to learn), but im stuck in a encoding thing.

It says: "Line 1, Column 1: character "¿" not allowed in prolog ".


I found the solution, which is the use of "UTF-8 BOM". It should be "without BOM" to support more browsers. I tried to convert or encode to "UTF without BOM", but it isent working?


I'm using notepad++
0
Comment
Question by:Mike Kristensen
3 Comments
 
LVL 108

Assisted Solution

by:Ray Paseur
Ray Paseur earned 166 total points
ID: 39735026
Sorry, but Notepad and Notepad++ are regular offenders here.
http://www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/A_11880-Unicode-PHP-and-Character-Collisions.html

Have you considered using a different text editor?  I have no problems with Textpad.  Even though it's old, it's served me well for either UTF-8 or ISO-8859-1.
0
 
LVL 14

Assisted Solution

by:ThG
ThG earned 167 total points
ID: 39735204
Actually I use Notepad++ in my regular job and never had a problem with that. Try to switch to ANSI for a while to find out what's going on. Always save the file before switching charset.

Also, if you have a linux command line available, something like this may help you inspect the problem:

head -c 10 filename_here | hexdump -c
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 167 total points
ID: 39735271
In the current version of Notepad++, the default encoding is "UTF-8 without BOM".  You can probably open and resave the files under that encoding to fix the problem.
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now