Vyhledávače.info » Poradna » SEO » SEO a Čestina
SEO a Čestina
| Autor | Zpráva |
|---|---|
| freak Člen |
Dobry den
Testuji novy web a mám problém s českými znaky, jako ščřžý atd. Pokud je nadpis příspěvku včetně těhto znaků tak se sice správně *php přemění na *.html ale text v adrese je špatně. tyto znaky tam nejsou nebo jsou nahrazeny nejakým nesmyslem :( Jak udělat aby tyto znaky byly správně nahrazeny? Např. č za c nebo ž za z atd? Omlouvám se ale to SEO vůbec nevidím. Tady je kod k nahlednuti. [code]function make_url($title,$id,$type,$linktitle="",$tidlink=""){ global $ibforums; $text = $title; //Charachters must be in ASCII and certain ones aint allowed $text = html_entity_decode ($text); $text = preg_replace ("'<[\/\!]*?[^<>]*?>'si", "", $text); $text = str_replace(" / ","-",$text); $text = str_replace("/","-",$text); $text = str_replace("'","-",$text); $text = str_replace(" - ","-",$text); $text = str_replace("_","-",$text); $text = str_replace(" ","-",$text); $text = str_replace( "ä", "ae", $text); $text = str_replace( "ö", "oe", $text); $text = str_replace( "ü", "ue", $text); $text = str_replace( "Ä", "Ae", $text); $text = str_replace( "Ö", "Oe", $text); $text = str_replace( "Ü", "Ue", $text); $text = str_replace( "ß", "ss", $text); $text = str_replace( "&", "and", $text); $text = str_replace( "%", "Percent", $text); $text = ereg_replace("[^A-Za-z0-9-]", "", $text); $text = str_replace("----","-",$text); $text = str_replace("---","-",$text); $text = str_replace("--","-",$text); if ($linktitle!=""){ $linktitle = " title=\"".$linktitle."\""; } if ($tidlink!=""){ $tidlink = " id=\"tid-link-{$tidlink}\""; } $furl = "<a{$tidlink} href=\"{$this->ipsclass->vars['board_url']}/{$text}-{$type}{$id}.html\ "{$linktitle}>{$title}</a>"; return $furl; }[/code] Děkuji PS: Web dělám v kodování windows-1250 #1 Zasláno: 25.8.07 16:37 - Změnil/a: freak |
| Marek Prokop Moderátor |
Promiňte, ale Váš dotaz nesouvisí se SEO. Jde li Vám o programování v PHP, doporučuji toto fórum o PHP.
Děkuji za pochopení. #2 Zasláno: 29.8.07 21:10 |
Toto téma je uzavřeno. Nemůžete zaslat odpověď.