| |
|
| :: |
| Author |
Message |
Bembis
Joined: 25 May 2008 Posts: 9
|
Posted: Tue May 27, 2008 12:05 pm Post subject: Re: About special characters remplacement |
|
|
Somebody Help me  |
|
|
| Back to top |
|
 |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Tue May 27, 2008 12:21 pm Post subject: Re: About special characters remplacement |
|
|
| Bembis wrote: |
I need ą Ą to a Šš to s ęĘ to e įĮ to i šŠ to s ųŲ to u ūŪ to u ėĖ to e ęĘ to e  |
Are these the only replacement you need ?
Because, I have few knowledge about these chars and the language they are used in.
From there I could give you an hand for coding  |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
Bembis
Joined: 25 May 2008 Posts: 9
|
Posted: Tue May 27, 2008 1:10 pm Post subject: Re: About special characters remplacement |
|
|
Yes only this Ąą - a čČ-c ęĘ-e ėĖ-e Įį-i Šš-s Ųų-u Ūū-u Žž-z this is Lithuanian language charakters  |
|
|
| Back to top |
|
 |
Bembis
Joined: 25 May 2008 Posts: 9
|
Posted: Wed May 28, 2008 3:58 pm Post subject: Re: About special characters remplacement |
|
|
| so ? |
|
|
| Back to top |
|
 |
SeO Administrateur - Site Admin

Joined: 15 Mar 2006 Posts: 3477
|
Posted: Thu May 29, 2008 9:09 pm Post subject: Re: About special characters remplacement |
|
|
well, this is not the message that gave me the most urge to answer ever, but ho well
Using http://www.tony-franks.co.uk/UTF-8.htm I'd get :
| Code: | // --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array(utf8_chr(260),utf8_chr(261), // ą Ą -a
utf8_chr(268),utf8_chr(269), // čČ-c
utf8_chr(280),utf8_chr(281), // ęĘ-e
utf8_chr(278),utf8_chr(279), // ėĖ-e
utf8_chr(302),utf8_chr(303), // Įį-i
utf8_chr(138),utf8_chr(154), utf8_chr(352),utf8_chr(353), // Šš-s
utf8_chr(370),utf8_chr(371), // Ųų-u
utf8_chr(362),utf8_chr(363), // Ūū-u
utf8_chr(142),utf8_chr(158), utf8_chr(381),utf8_chr(382), // Žž-z
);
$this->seo_opt['url_replace'] = array('a', 'a', 'c', 'c', 'e', 'e', 'e', 'e','i', 'i', 's', 's', 's', 's', 'u', 'u', 'u', 'u', 'z', 'z', 'z', 'z'); |
Note that for š and ž, both upper and lower case, there was more than on set of entry in the table, I implemented them all, since I'm not really sure what would make someone use one set or another, this way, it should work in all cases. |
_________________ phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible ! |
|
| Back to top |
|
 |
IPB_Refugee

Joined: 24 Jul 2008 Posts: 31
|
Posted: Sat Jul 26, 2008 5:42 pm Post subject: Re: About special characters remplacement |
|
|
Hello SeO & dcz,
I wanna thank you very much for your wonderful work. I just installed your Advanced SEO URL MOD and until now (haven't tested it too much yet) it works very well.
Here is my version chiefly to handle german umlauts:
| Code: | // --> Custom str_Replace arrays, to handle special cases properly
$this->seo_opt['url_find'] = array(
utf8_chr(196),utf8_chr(228), // ä
utf8_chr(214),utf8_chr(246), // ö
utf8_chr(220),utf8_chr(252), // ü
utf8_chr(223), // ß
utf8_chr(39), utf8_chr(180), // '´
);
$this->seo_opt['url_replace'] = array('ae', 'ae', 'oe', 'oe', 'ue', 'ue', 'ss', '', ''); |
I think you really should tell about this thread in your install file or, maybe even better, provide a guide how to handle special chars directly in the installation file.
Thanks again & greetings from Austria!
Wolfgang |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14271
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|