Solved

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

Posted on 2013-12-22
3
619 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 110

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses how to create an extensible mechanism for linked drop downs.
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…
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 …

752 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