w3c validation UTF-8 encoding error

With w3c validator you could get this error:
«Sorry, I am unable to validate this document because on line 3400 it contained one or more bytes that I cannot interpret as utf-8 (in other words, the bytes found are not valid values in the specified Character Encoding). Please check both the content of the file and the character encoding indication.» 
That could be because you have some files included in the php file checked by w3c validator, like an .inc one, not encodeed as UTF-8.
To fix this oproblem you have to encode all the components of a php file as UTF-8.

bypassare la troppo rigida validazione dei widgets

Il validatore xhtml del w3c è molto severo, e i widgets, ad esempio quelli di Facebook e quelli di Twitter contengono del codice proprietario non validato: si può allora cambiare doctype: da xhtml a html5, molto più flessibile.
Io ho fatto così in un mio sito (MondoOggi) e viene validato correttamente come html5.