Solved

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

Posted on 2013-12-22
3
577 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 109

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 83

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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
is this a cms? 8 60
php construct 5 26
Number of hours between date in DB and now 8 17
display balance of stars as greyed out 8 12
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to create an extensible mechanism for linked drop downs.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

776 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