Charset
6 naročnikov
6 naročnikov
[HTML]<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />[/HTML]
http://validator.w3.org/check?uri=...
Pa mi vrže ven tole:
Sorry, I am unable to validate this document because on line 58, 74, 76 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.
Zakaj mi forsura UTF8, če hočem in sem doličil iso-8859-1 ? Če dam v htaccess AddDefaultCharset latin1 mi tudi ven vrže error, kje sem še pozabo ? Nekje sem mogo na UTF dat ali zakaj to dela ?
14 odgovorov
Imam pa drug problem ...
.htaccess:
AddDefaultCharset windows-1250
index.php:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
Sedaj pa nevem kateri charset naj nastavim v tabelah v bazi, da se bodo šumniki pravilno prikazovali in da bodo vnosi itd. delali, gre za phpBB2 forum.
Sedaj se mi šumniki namreč ne prikazujejo, pa še kadar post vsebuje šumnike, dobim tak error:
SQL Error : 1267 Illegal mix of collations (latin1bin,IMPLICIT) and (latin2general_ci,COERCIBLE) for operation '='
INSERT INTO phpbbsearchwordmatch (postid, wordid, titlematch) SELECT 2185, wordid, 0 FROM phpbbsearchwordlist WHERE word_text IN ('čćžčćž')
Line : 251
File : functions_search.php
Ve kdo kateri charset bi moral nastaviti po tabelah ?
DEFAULT CHARSET=utf8 COLLATE=utf8slovenianci;
tole bo rešilo vse tvoje težave s šumniki v mysql bazi :)
Verjetno shranjuješ UTF8 podatke kot ISO-8859-1 ...
preveri če imaš vsepovsod določene iste charsete ...