Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [xhtml] Validator zgłasza błąd
Jarod
post 22.02.2006, 11:55:59
Post #1





Grupa: Zarejestrowani
Postów: 1 190
Pomógł: 27
Dołączył: 23.04.2005

Ostrzeżenie: (0%)
-----


Mam kod w pliku index.php, rozszerzenie pliku musiałem zmienić na html bo nie chciał mi walidować. Oto zawartość pliku index.html:
  1. <?xml version="1.0" encoding="iso-8859-2"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="pl" xml:lang="pl">
  4.  
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  7. <meta http-equiv="Content-language" content="pl" />
  8. <meta name="Description" content="Producent odzieży i akcesoriów reklamowych. Zdobyte doświadczenie pozwala nam zapewnić profesjonalny, najwyższej jakości produkt reklamowy." />
  9. <meta name="Keywords" content="producent, odzieży, akcesoriów, reklamowych, kurtki, wiatrówki, t-shirty, koszulki, bluzy, polary, torby sportowe, teczki konferencyjne, plecaki, imprezy integracyjne, gadżety, galanteria skórzana" />
  10. <meta name="Author" content="" />
  11. <meta name="Robots" content="all" />
  12.  
  13. <?xml-stylesheet type="text/css" href="style.css" ?>
  14. </head>
  15.  
  16. <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  17.  
  18. <p>
  19. To jest przykładowy tekst.
  20. </p>
  21.  
  22. </body>
  23. </html>



I pojawiają się błędy. Nie wiem o co chodzi..

Cytat
This page is not Valid XHTML 1.0 Transitional!

Below are the results of checking this document for XML well-formedness and validity.

  1. Error Line 8 column 94: non SGML character number 156.

...y i akcesoriów reklamowych. Zdobyte doœwiadczenie pozwala nam zapewnić pro

      You have used an illegal character in your text. HTML uses the standard UNICODE Consortium character repertoire, and it leaves undefined (among others) 65 character codes (0 to 31 inclusive and 127 to 159 inclusive) that are sometimes used for typographical quote marks and similar in proprietary character sets. The validator has found one of these undefined characters in your document. The character may appear on your browser as a curly quote, or a trademark symbol, or some other fancy glyph; on a different computer, however, it will likely appear as a completely different character, or nothing at all.

      Your best bet is to replace the character with the nearest equivalent ASCII character, or to use an appropriate character entity. For more information on Character Encoding on the web, see Alan Flavell's excellent HTML Character Set Issues reference.

      This error can also be triggered by formatting characters embedded in documents by some word processors. If you use a word processor to edit your HTML documents, be sure to use the "Save as ASCII" or similar command to save the document without formatting information.

      ✉
  2. Error Line 8 column 157: non SGML character number 156.

... zapewnić profesjonalny, najwyższej jakoœci produkt reklamowy." />


Ten post edytował J4r0d 22.02.2006, 12:59:34


--------------------
”Godzina nauki w życiu nowoczesnego apostoła jest godziną modlitwy.”
(św. Josemaría Escrivá, Droga, 335)
Go to the top of the page
+Quote Post
hwao
post 22.02.2006, 12:06:00
Post #2


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




  1. <meta name="Description" content="Producent odzieży i akcesoriów reklamowych. Zdobyte doświadczenie pozwala nam zapewnić profesjonalny, najwyższej jakości produkt reklamowy." />
  2. <meta name="Keywords" content="producent, odzieży, akcesoriów, reklamowych, kurtki, wiatrówki, t-shirty, koszulki, bluzy, polary, torby sportowe, teczki konferencyjne, plecaki, imprezy integracyjne, gadżety, galanteria skórzana" />


Zapisz te dane w content uzywajac UNICODE
Reszta bledów pisze w komentarzu przeciez:>
Go to the top of the page
+Quote Post
Jarod
post 22.02.2006, 12:12:00
Post #3





Grupa: Zarejestrowani
Postów: 1 190
Pomógł: 27
Dołączył: 23.04.2005

Ostrzeżenie: (0%)
-----


Cytat(hwao @ 2006-02-22 11:06:00)
Zapisz te dane w content uzywajac UNICODE

Możesz troszke jasniej? Nie zabardzo rozumiem..


--------------------
”Godzina nauki w życiu nowoczesnego apostoła jest godziną modlitwy.”
(św. Josemaría Escrivá, Droga, 335)
Go to the top of the page
+Quote Post
mike
post 22.02.2006, 12:25:53
Post #4





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

Ostrzeżenie: (0%)
-----


1. Proszę poprawić posta stosując odpowieni bbCode.
2. Zapisz plik w takim samym kodowaniu jakie deklarujesz czyli w iso-8859-2
A najlepiej użyj UTF-8
Go to the top of the page
+Quote Post
Jarod
post 22.02.2006, 13:00:26
Post #5





Grupa: Zarejestrowani
Postów: 1 190
Pomógł: 27
Dołączył: 23.04.2005

Ostrzeżenie: (0%)
-----


Cytat(mike_mech @ 2006-02-22 11:25:53)
1. Proszę poprawić posta stosując odpowieni bbCode.
2. Zapisz plik w takim samym kodowaniu jakie deklarujesz czyli w iso-8859-2
A najlepiej użyj UTF-8

Ad1. Zrobione
Ad2. Plik jest zapisany w kodowaniu iso-8859-2 a błąd nadal. Nie wiem co robie nie tak..


--------------------
”Godzina nauki w życiu nowoczesnego apostoła jest godziną modlitwy.”
(św. Josemaría Escrivá, Droga, 335)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 7.07.2025 - 23:32