Autor Zpráva
superman
Profil *
pise mi:

Notice: iconv(): Detected illegal character in input string in c:\program files\easyphp1-8\www\iconv.php3 on line 3

pri tomto kode:

<?
function URLize($text) {
$text = iconv('ISO-8859-1', 'ASCII//TRANSLIT', $text);
$text = str_replace('\'', '', $text);
$text = preg_replace('/\W+/', '-', $text);
$text = trim($text, '-');
//$text = strtolower($text);
return $text;
}


echo URLize("áá");
?>


pls co s tym? ostatnym to beha normalne...
djlj
Profil
Hmm, nemá tam být spíš iso-8859-2?
superman
Profil *
ani iso-8859-2 nepomohlo... ani z databazy to nenacitava ;o( poradte pls.

alebo puzivate niekto inu funkciu ?
Hugo
Profil
A v jakem kodovani mas ten text? Je to skutecne iso?
superman
Profil *
skusal som rozne obmeny kodovania databazy , cp. iso, utf a tiez som to kodovanie napisal aj do tej funkcie a nepomaha to...

a ked ten text chcem nacitat zo zdrojaku(viz 1. priklad) tak to hadze tu istu chybu ako pri db...

((pouzivam homesite a mysql-front pre db))
nigga
Profil *
nemoze ist o to, ze mam nejaku blbu verziu iconv DLL-ky ktora nepodopruje dlhe á atd...?

mam easy php1-8 je tam php4.x.x
nigga
Profil *
btw po preinstalacii mysql mi nefunguju napriklad makke ť , skusal som cey mysql-front rozne kodovania a neviem to nastavit!
gaminn
Profil *
iconv(mb_detect_encoding($text), 'ASCII//TRANSLIT', $text);
nigga
Profil *
gaminn: tato funkcia vypise vzdy len premennu $text a pokial je v nej dlhe á tak zase hodi:

iconv(): Detected incomplete character in input string in
Toto téma je uzamčeno. Odpověď nelze zaslat.

0